简体   繁体   English

Intellij断点未停止

[英]Intellij breakpoint not stopping

I have not worked with Intellij or Java before, and tried setting a breakpoint like in the picture below. 我以前没有使用过Intellij或Java,并尝试过设置断点,如下图所示。 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. 我已经阅读了有关intellij断点的其他答案,但它们都是关于多线程应用程序的。 I just downloaded intellij too, so I know I have the newest community version. 我也刚刚下载了intellij,所以我知道我拥有最新的社区版本。

在此处输入图片说明

No executable code found... 找不到可执行代码...

Just init your local variable and debugger suspend on it: 只需初始化您的局部变量,调试器就将其挂起:

在此处输入图片说明

5 line have next code: 5行有下一个代码:

Integer count;

Check this guide for more information. 查看本指南以获取更多信息。

Try to set a breakpoint in a next row. 尝试在下一行中设置断点。 Java cant stop at lines without any action. Java不能停下来不采取任何行动。 You will see check icon in breakpoint when you select a proper line. 选择适当的行后,您会在断点处看到复选图标。

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. 您应该在myboard板上设置断点...这实际上是有作用的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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