简体   繁体   中英

How to only step through 'my' Java source code when using Intellij's debugger?

I am trying to understand a small Java codebase that I have been given, by stepping through the program with Intellij's debugger. I began at the 'main' function, and continually pressed 'step into' to execute each line of code. However, the debugger soon started stepping into 'Application.class' and 'Thread.java'. I only want to step through the source code that I have been given.

I looked up this question and the solution was to add entries in settings->debugger->stepping->'Do not step into class', but the debugger still steps into these classes and is making it impossible for me to step through the source code to get an understanding of how it works.

Using Function keys makes things much easier.

Use the F8 Function Key to step through your code and when you want to go through the invoked method from your code, use F7.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM