IntelliJ IDEA:断点未被击中,并且没有勾选,只显示一个红点 [英] IntelliJ IDEA: Breakpoint not being hit, and is shown without the tick, just a red dot

查看:1796
本文介绍了IntelliJ IDEA:断点未被击中,并且没有勾选,只显示一个红点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我发现的最相似的问题是



问题是在某些类中(在同一个项目中,不是依赖类),红点内部没有勾号,它不告诉为什么它不起作用。它只是不起作用..:





<到目前为止我尝试了什么:




  • Gradle clean&构建

  • 重建项目

  • 重新启动调试

  • 使缓存无效并重新启动IntelliJ

  • 将IntelliJ更新到最新版本(2017.2.5)

  • 静音&取消静音断点


解决方案

通过IntelliJ帮助进行了一些搜索PDF:

帮助文档页码431



他们的文档将复选标记描述为在运行时显示调试器识别的断点是
,如$ b $所示b可执行代码行。



和常规红点为在设计时或在调试
会话期间显示具有此类断点的类是
尚未加载。



所以看起来这行是你添加的断点永远不会被执行。您可以尝试逐行升级,以确保课程不会挂起。



希望这有助于


First of all, the most similar question that I found is this Intellij IDEA: Breakpoint not being hit, and is shown greyed out but that is not the exact same case.

I have a gradle project, and when I put a breakpoint it is displayed as a red dot, with a tick inside, and it just works fine.

The problem is that in some classes (in the same project, not a dependency class), the red dot doesn't have a tick inside, and it doesn't tell why it wouldn't work. And it just doesn't work..:

What have I tried so far:

  • Gradle clean & build
  • Rebuild project
  • Restart debug
  • Invalidate caches and restart IntelliJ
  • Update IntelliJ to the latest version (2017.2.5)
  • Mute & Unmute breakpoints

解决方案

Did some searching through IntelliJ Help PDF:
Help Doc pg. 431

Their documentation Describes the checkmark as "Shown at run-time when the breakpoint is recognized by the debugger as set on an executable code line."

and the regular red dot as "Shown at design-time or during the debugging session when the class with such breakpoint is not yet loaded. "

So it would seem that the line you're adding the breaking point to never gets executed. You can try stepping up line by line through the class to make sure the class is not getting hung up somewhere.

Hope this helps

这篇关于IntelliJ IDEA:断点未被击中,并且没有勾选,只显示一个红点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆