简体   繁体   中英

Stack trace not found in Output during Netbeans 7.4 debugging session

In Netbeans 7.4, I set a breakpoint at the point where my program quit working and began debugging.

在此处输入图片说明

The first print statement printed; second didn't.

In the debugger, execution stopped here:

在此处输入图片说明

Even after I selected Continue ( F5 ) from the Debug pulldown, there was no stack trace in the output, so I was stumped about where the error actually occurred.

So I ran again but did NOT debug. I found a stack trace; problem easily solved.

Why didn't I get one while debugging? Is this just how it is in Netbeans when debugging?

* EDIT *

As it happens, the exception was that availableLetters was null . I fixed the problem via the if statement below, but that doesn't answer my question:

在此处输入图片说明

转到菜单:Window-> Debugging-> Call Stack,然后它应该出现在自己的选项卡中,位于代码窗格下方。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM