Search code examples
debuggingintellij-idealibrariesbreakpoints

Intellij: how to open a library java source and set a breakpoint for debugging?


Intellij: how to open a library java source and set a breakpoint for debugging?

From a stacktrace, we know where to set a breakpoint. Right now, we have to step into one lib java source at a time during debug and it takes a long time to get to the source line we are interested in.


Solution

  • You can navigate to any file using the Search Everywhere feature (Shift+Shift) or Navigate | File / Class (Ctrl+Shift+N / Ctrl+N).

    If you change the scope to Project and Libraries, this will also navigate to the library classes where you can set the breakpoints.

    Project and Libraries