javajdb

JDB stops on every exception - how to prevent this


I am using a jdb dubugger, and the problem with it that is stops on every caught exception, though I did not execute any catch .... statements. During class loading there are hundreds of them:

Exception occurred: java.io.FileNotFoundException (uncaught)"thread=Thread-2-EmulatorEngine", sun.misc.URLClassPath$JarLoader.ensureOpen(), line=634 bci=30

Is it any way to instruct jdb to skip these exceptions ?

PS. I have heard about IDE editors of cause. Have reasons to use jdb.


Solution

  • I realized that I am not careful enough. JDB writes after launch these lines

    Set uncaught java.lang.Throwable

    Set deferred uncaught java.lang.Throwable

    So, to disable that, I need to enter a command

    ignore uncaught java.lang.Throwable