Rognik
Rognik

Reputation: 145

Cant debug in eclipse ide

I am trying to debug a code using f5 and started step by step debugging. But when I pressed f5 in the next step the breakpoint moves to thread class and then to threadgroup class. It iterates to many steps.

enter image description here

Here l.add(edg) its an object for user defined class. When I started debugging by pressing f5 in the next step I got

enter image description here

It continuously iterates through all the thread classes.. Why and what is the problem behind this issue? How to overcome this problem?

Upvotes: 0

Views: 1226

Answers (3)

jhamon
jhamon

Reputation: 3681

This is not a problem with Eclipse. That behavior is perfectly normal. It means your program throws an exception when executing the line of code.

You can see this as you reach the getUncaughtExceptionHandler().uncaughtException(...). That means you got... an uncaught exception! As it's uncaught, the thread is interrupted and the exception is processed by the default handler.

Your program normally should print it in the standard error output (the console) if you let it run (not step by step).

Probably, your l list is not properly initialized and you get an NullPointerException but that's just a guess as I don't know what lis. Try to re-run your code. When it reach the step where it crash, check the value of your object (hover it with your mouse or add it to the watched objects list).

Upvotes: 1

srikanth r
srikanth r

Reputation: 332

You should go through some tutorials before proceeding Please refer the link it could help you of basic understanding of debugging. How to debug in eclipse?

Upvotes: 0

bNd
bNd

Reputation: 7630

There are different key for debug code in eclipse.

F5 To go in code depth

F6 for line by line in class

F8 for next breakpoint

F7 come out from depth.

Try anyone and see result.

Upvotes: 1

Related Questions