Mute breakpoints by thread
Is it possible to do this? This feature is particularly relevant in a project with re-used s/w components. I'm interested in knowing the elements of a custom hashmap that is used in one part of my code at a certain time. However, if I put a break point on it then every thread that is using that hashmap for any purpose will suddenly be hitting my breakpoint. I'd like the ability to mute break points by thread. I understand this will slow down my app (because a thread identity test would have to be done each time the break point was hit) but it's infinitely better than what I have now.
请先登录再写评论。
You can set the breakpoint for a specific instance of the hashmap only.
Would that help?
alan brown wrote:
--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com
You can set a conditional breakpoint with condition like this
"MyThread".equals(Thread.currentThread().getName())
Where "MyThread" is the name of the thread of interest.
--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"
"alan brown" <no_reply@jetbrains.com> wrote in message news:248049.1143145851756.JavaMail.itn@is.intellij.net...
Thanks for the tip. That's actually exactly what I've been doing. But I do think it's a useful product enhancement to turn bp's on and off by thread.
thanks for the feedback.
alan
Thanks for the suggestion, I've added a request:
http://www.jetbrains.net/jira/browse/IDEADEV-5145
--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"
"alan brown" <no_reply@jetbrains.com> wrote in message news:12015293.1143233022759.JavaMail.itn@is.intellij.net...
>
>