Test suite: Miscellaneous

Purpose: Verified a various debugger's functionality
Setup: Start NetBeans IDE with clear userdir Open project MemoryView and project Derive. Set Memory View as main project for now.

Two top level classes in one file - step functionality

Open ClazzOne.java in source editor

Toggle line breakpoint on line 27

Invoke Debug File action from context menu of file in Projects view

Invoke Step Into until debugger finishes

EXPECTED RESULT: Debugger will step through constructor of class ClazzTwo and method doit()

Teardown: Delete breakpoint

Two top level classes in one file - line breakpoint

Open ClazzOne.java in source editor

Toggle line breakpoint on line 39

Invoke Debug File action form context menu of file in Projects view

EXPECTED RESULT: Breakpoint Line ClazzOne.java:39 will be created. Debugger will stop on the breakpoint.

Teardown: Finish debugging session and delete breakpoint

Two top level classes in one file - class breakpoint

Open ClazzOne.java in source editor

Place caret on line 33

Invoke New Breakpoint and create class breakpoint

Invoke Debug File action form context menu of file in Projects view

EXPECTED RESULT: Breakpoint Class ClazzTwo load / unload will be created. Debugger will stop on line 27 when loading class.

Teardown: Finish debugging session and delete breakpoint

Two top level classes in one file - method breakpoint

Open ClazzOne.java in source editor

Place caret on line 39

Invoke New Breakpoint and create method breakpoint

Invoke Debug File action form context menu of file in Projects view

EXPECTED RESULT: Breakpoint Method ClazzTwo.doit will be created. Debugger will stop on the breakpoint.

Teardown: Finish debugging session and delete breakpoint

Code completion in condition field

Toggle line breakpoint on line 101 of MemoryView.java

Invoke Breakpoint|Properties from context menu of breakpoint annotation in guter

EXPECTED RESULT: Breakpoint Properties dialog will be opened. Code completion with context of MemoryView.java file will be possible in Condition field.

Teardown: Cancel the dialog and delete breakpoint

Debugging multithreaded application

Open file ThreadSuspending.java in editor

Toggle breakpoints on lines 28 and 38

Create watch i

Invoke Debug|Debug File "Thread Suspending.java" menu

When debugger stops on breakpoint, invoke Step Into or Step Over action

EXPECTED RESULT: It will be possible to invoke the actions and debugger will not freeze. If the step actions will be dissabled, action Continue will start the debuged process and the breakpoints will be hit again.