This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 198371

Summary: Provide action to print stack trace from paused thread in debugger
Product: debugger Reporter: javaprog <javaprog>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: -S1S-   
Hardware: PC   
OS: Windows Vista   
Issue Type: ENHANCEMENT Exception Reporter:

Description javaprog 2011-05-06 08:56:00 UTC
In order to report bugs in debugged applications (especially deadlocks found by the debugger), it would be very helpful to have an action for accessing the stack traces of interrupted threads in text form.

The graphical user interface with its depiction of threads, call stacks and monitors is just marvelous. However, for reporting a deadlock I need it in text form and so I have to type the stack traces from the graphical representation, which is tedious and error-prone. This could easily be improved by adding an action to the context menu of interrupted threads, which would print the stack trace (including the monitors held and those that are waited for) to the debugger output window. Then I could simply copy and paste the output for reporting the bug.
Comment 1 Martin Entlicher 2011-05-06 10:23:12 UTC
There already is "Copy Stack" action, but now I see that unfortunately it's available only on stack frames of the thread. It should be available on the thread itself. It copies the stack trace into the clipboard.
Also, we could add an action to copy stack traces of all threads.
And it's a good point to include monitors. :-)