I have a Spring MVC project that I'm trying to debug using IntelliJ.
If I set a breakpoint in my Controller code, the debug stops at the appropriate place. That particular line has more of my own code in another bean. I'd like to be able to step into the code. If I "step into" immediately after the breakpoint riggers, it steps into Spring's AOP framework code.
If I trigger the same breakpoint and "smart step into" immediately, it puts me at line -1 of the source file (apparent in the graphic above). What is this line -1 signify? If I do "smart step into" again, I end up at the line after my original breakpoint, but never having been placed inside the method I wanted to step into.
I have tried putting the Spring AOP package into the Debugger setting Do not step into the classes. However, I also ended up having to put in transaction classes as well as several others. In the end, I put all of Spring into the list ... and SLF4J and some JDBC drivers.
How can I just get IntelliJ to only stop in my project source code unless I use something like "force step into"?
Do not step into classes
setting you can declare a pattern using wildcard. This may help for quickly excluding packages likeorg.*
andcom.*
, assuming yours doesn't start with those. It would be a perfect solution for you to be able to use negation (!
) in those patterns - I'd suggest sending this as a feature request. – Michał Rybak