Reputation: 1521
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.
Upvotes: 1
Views: 674
Reputation: 4892
No executable code found...
Just init your local variable and debugger suspend on it:
5 line have next code:
Integer count;
Check this guide for more information.
Upvotes: 2
Reputation: 915
The declaration itself isn't really executable code - it's just declaring the existence of something. You should breakpoint on Board myboard... which actually does something.
Upvotes: 1
Reputation: 618
Try to set a breakpoint in a next row. Java cant stop at lines without any action. You will see check icon in breakpoint when you select a proper line.
Upvotes: 1