Weird behaviour when trying to debug class in IntelliJ

Answered

Since receiving a new laptop from my new employer, the debugger has been behaving differently to previous experiences (been using IntelliJ on macOs and Windows for years)

previous/preferable behavior: The debugger will open my .java file and stop at the breakpoint.

new behaviour: The debugger will open the .class file (decompiled version of the .class from the .jar file) and stop at the breakpoint.

How do I get back the old behavior back? Thanks!

0
1 comment

Check your project configuration, make sure the sources for these classes belong to the source roots. https://stackoverflow.com/a/43319356/104891 might be the case.

0

Please sign in to leave a comment.