Does a breakpoint halt all threads?

女生的网名这么多〃 提交于 2019-11-27 22:42:33

Breakpoints have an option how they should behave: to suspend a single thread or all threads

I believe that each thread will stop once it hits the breakpoint in the code, while other threads will continue to run. I remember this from my Tomcat days.

By default only the thread that hits the breakpoint stops. However, you can modify the behavior by changing the breakpopint properties.

It might be interesting to note that in Eclipse and NetBeans the default behavior is to suspend the current thread when the breakpoint is hit, while in IntelliJ it suspends all threads.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!