Search code examples
javaintellij-ideabreakpoints

Intellij breakpoint not stopping


I have not worked with Intellij or Java before, and tried setting a breakpoint like in the picture below. Is there a reason why my code would not be stopping? I've read other answers about intellij breakpoints, but they were about multithreaded applications. I just downloaded intellij too, so I know I have the newest community version.

enter image description here


Solution

  • No executable code found...

    Just init your local variable and debugger suspend on it:

    enter image description here

    5 line have next code:

    Integer count;
    

    Check this guide for more information.