Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JDB stops on every exception - how to prevent this

Tags:

java

jdb

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.

like image 288
Nulldevice Avatar asked Jan 23 '26 11:01

Nulldevice


1 Answers

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
like image 128
Nulldevice Avatar answered Jan 26 '26 01:01

Nulldevice



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!