You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMD + Shift + T to open DefaultListableBeanFactory, set a breakpoint in registerBeanDefinition() to hit when the BeanFromTest is registered
Hit 'Debug as Junit Test' to debug the test
The breakpoint hits on every single invocation because of the "Unable to compile conditional breakpoint - Missing Java Project Context". Also if you look in the screenshot, you'll see that 2 instances of DefaultListableBeanFactory are opened: 1 that has the little Java bytecode argument (which is where I originally set the breakpoint) and one that just has a J, which was opened when the breakpoint hit. The J icon usually means that the project is not a Java project.
Also might be interesting is that before running the JUnit test at all, I had previously downloaded the sources for spring-context so that was already in my ~/.m2/repository. It did not need to download it on-demand.
I also cannot do things I normally can in Java debugging, like right-click and "Inspect" with 'Unable to evaluate the selected expression' (even though hovering works):
The text was updated successfully, but these errors were encountered:
Final output:
Reproduction steps:
4-4.0.1.RELEASE-e4.9.0-macosx.cocoa.x86_64.dmg
)-javaagent
to the.app
folder in order to use Lombok annotationsspring-boot-starter-web
and JUnit JupiterDemoApplicationTests
to look like this:DefaultListableBeanFactory
, set a breakpoint inregisterBeanDefinition()
to hit when theBeanFromTest
is registeredThe breakpoint hits on every single invocation because of the "Unable to compile conditional breakpoint - Missing Java Project Context". Also if you look in the screenshot, you'll see that 2 instances of
DefaultListableBeanFactory
are opened: 1 that has the little Java bytecode argument (which is where I originally set the breakpoint) and one that just has aJ
, which was opened when the breakpoint hit. TheJ
icon usually means that the project is not a Java project.Also might be interesting is that before running the JUnit test at all, I had previously downloaded the sources for
spring-context
so that was already in my~/.m2/repository
. It did not need to download it on-demand.I also cannot do things I normally can in Java debugging, like right-click and "Inspect" with 'Unable to evaluate the selected expression' (even though hovering works):
The text was updated successfully, but these errors were encountered: