How to create a breakpoint at when a runtime exception is thrown in threaded app.

I have a misbehaving threaded application in which, in very rare cases one of the threads, throws a runtime exception ConcurrentModificationException on a HashMap being modified by a thread while another tries to read from it.

I am trying to figure out how to put a breakpoint at when this particular exception is thrown so that I can examine the state of the running threads and see where the read/write lock is being violated.

Is there a way to create a breakpoint at when the runtime exception is thrown ?

1 comment
Comment actions Permalink

Nevermind. I found the docs for it.


Please sign in to leave a comment.