DebuggerOptions67

Debugger Options in NetBeans 7.0 (Draft)

This document summarizes introduction of debugger options in NetBeans 7.0.

Contents


Problem Description

Customizability, usability.

Content of Debugger Options

Following items should be customizable in debugger options:

  • Stop on uncaught exceptions (we'll stop on compilation errors always)
  • Default suspend policy for new breakpoints: Suspend [[[BreakpointThread,AllThreads,NoThread(logging) | [ Breakpoint Thread, All Threads, No Thread (logging)]]
  • Steps suspend and resume: [[[CurrentThreadOnly,AllThreads | [ Current thread only, All Threads ]]
  • Apply Code Changes after save (in Compile-on-Save mode only)
  • Step Filters
  • Variable Formatters

UI Specification

Debugger Options are located in the Options dialog in Miscellaneous category in tab "Java Debugger". The options are specific for Java debugger.

The Java debugger options have three categories:

  • General
  • Step Filters
  • Variable Formatters

Options panel for General category

|----------------------------------------------------------------------------------------------------------------------------------------------|
|                                                                   Options                                                                    |
|----------------------------------------------------------------------------------------------------------------------------------------------|
|...........| Java Debugger |..................................................................................................................|
|                                                                                                                                              |
| (*) General             | [X] Stop on uncaught exceptions                                                                                    |
| ( ) Step Filters        |     By default, new breakpoints suspend [[BreakpointThread  |  breakpoint thread ]][V]                                                   |
| ( ) Variable Formatters |     Steps resume [[CurrentThreadOnly  |  current thread only ]] [V]                                                                       |
|                         | [ ] Apply code changes after save (in "Compile on Save" mode only)                                                 |
|                         |                                                                                                                    |
|'''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_'''__|

Where:

  • other options in the "breakpoint thread" combo-box are: "all threads" and "no thread (logging)"
  • other options in the "current thread only" combo-box are: "all threads".

Options panel for Step Filters category

|----------------------------------------------------------------------------------------------------------------------------------------------|
|                                                                   Options                                                                    |
|----------------------------------------------------------------------------------------------------------------------------------------------|
|...........| Java Debugger |..................................................................................................................|
|                                                                                                                                              |
| ( ) General             | [X] Use Step Filters                                                                                               |
| (*) Step Filters        |     [ ] Filter synthetic methods                                                                                   |
| ( ) Variable Formatters |     [ ] Filter static initializers                                                                                 |
|                         |     [ ] Filter constructors                                                                                        |
|                         |     Filter classes matching:                                                                                       |
|                         |     |------------------------------------------------------------------------------------|                         |
|                         |     | [[  |  ]] java.*                                                                         |     [  Add...    ]     |
|                         |     | [[  |  ]] javax.*                                                                        |     [  Remove    ]     |
|                         |     | [[  |  ]] org.ietf.jgss.*                                                                |     [ CheckAll  ]     |
|                         |     | [[  |  ]] org.omg.*                                                                      |     [UncheckAll ]     |
|                         |     | [ ] org.w3c.dom.*                                                                  |                         |
|                         |     | [ ] org.xml.sax.*                                                                  |                         |
|                         |     | [ ] sun.*                                                                          |                         |
|                         |     | [ ] sunw.*                                                                         |                         |
|                         |     | [X] java.lang.ClassLoader                                                          |                         |
|                         |     | [X] java.lang.StringBuilder                                                        |                         |
|                         |     |                                                                                    |                         |
|                         |     |'''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_'''____|                         |
|                         |                                                                                                                    |
|                         |     [X] Step through filters to reach unfiltered code                                                              |
|'''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_'''__|

Options panel for Variable Formatters category

|----------------------------------------------------------------------------------------------------------------------------------------------|
|                                                                   Options                                                                    |
|----------------------------------------------------------------------------------------------------------------------------------------------|
|...........| Java Debugger |..................................................................................................................|
|                                                                                                                                              |
| ( ) General             | |--------------------------------------------------------------------------------------------|                     |
| ( ) Step Filters        | | [[X | x]] Collection as array                                                                    |     [   Add    ]   |
| (*) Variable Formatters | | [[X | x]] Map as array of entries                                                                |     [  Remove  ]   |
|                         | | [[X | x]] Map$Entry as key and value                                                             |     [ MoveUp  ]   |
|                         | |                                                                                            |     [MoveDown ]   |
|                         | |                                                                                            |                     |
|                         | |'''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_'''__|                     |
|                         |                                                                                                                    |
|                         | Name:        [MapAsArrayOfEntries________________________________________________________]                     |
|                         | Class Types: [[Java.util.Map___________________________________________ | java.util.Map___________________________________________]] [X] including subtypes                     |
|                         | Format Value as a result of code snippet:                                                                          |
|                         |     |----------------------------------------------------------------------------------------|                     |
|                         |     | return toString();                                                                     |                     |
|                         |     |                                                                                        |                     |
|                         |     |----------------------------------------------------------------------------------------|                     |
|                         | Display variable children                                                                                          |
|                         | (*) as a result of code snippet:                                                                                   |
|                         |     |----------------------------------------------------------------------------------------|                     |
|                         |     | return entrySet().toArray();                                                           |                     |
|                         |     |                                                                                        |                     |
|                         |     |----------------------------------------------------------------------------------------|                     |
|                         | ( ) as list of variables:                                                                                          |
|                         |     |----------------------------------------------------------------------------------------|                     |
|                         |     |       Name              |                         Value                                |                     |
|                         |     |-------------------------|--------------------------------------------------------------|      [   Add    ]  |
|                         |     |                         |                                                              |      [  Remove  ]  |
|                         |     |                         |                                                              |      [ MoveUp  ]  |
|                         |     |                         |                                                              |      [MoveDown ]  |
|                         |     |                         |                                                              |                     |
|                         |     |----------------------------------------------------------------------------------------|                     |
|                         | Test expression if the variable can be expanded (optional):                                                        |
|                         |     [________________________________________________________________________________________]                     |
|                         |                                                                                                                    |
|'''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_''''''_'''__|
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo