| # | Test case | Description |
| 1 | Start debugger |
- Start debugger
- Continue debug session
- Finish debugging
|
|
| RESULT: Debugger stops at breakpoint, after continue shows JSP in browser and finishes finally. |
| Try to repeat using different UI controls (toolbar, shortcuts, main menu -
Run|Debug Main Project (F5),
Run|Continue (Ctrl+F5),
Run|Finish Debugger Session(Shift+F5),
Debug Project on project root node)
|
|
| 2 | Start debugger after run |
- Run project
- Start debugger
- Continue debugging session
- Finish debugger
|
|
| RESULT: Debugger stops at breakpoint. |
| 3 | Start debugger after reached breakpoint |
- Start debugger
- Finish debugger when it stops at breakpoint
- Start debugger again
- Finish debugger
|
|
| RESULT: Debugger alway stops at breakpoint. |
| 4 | Start debugger with stopped server |
- Start debugger
- Finish debugger when it stops at breakpoint.
- Stop server in Runtime view.
- Start debugger again
- Finish debugger.
|
|
| RESULT: Server starts and debugger always stops at breakpoint. |
| 5 | Start debugger without breakpoint |
- Delete breakpoint from index.jsp.
- Start debugger and wait until JSP is shown in browser
- Add breakpoint to index.jsp
- Reload JSP in browser and wait until debugger stops at breakpoint
- Continue debugging
- Repeat steps 4 and 5 several times.
- Finish debugger.
|
|
| RESULT: Debugger stops at breakpoint. |
| 6 | Start debugger on unsaved JSP |
- Modify index.jsp and put a breakpoint
- Start debugger.
- Finish debugger.
|
|
| RESULT: JSP is saved and debugger stops at breakpoint. |
| 7 | Start debugger on JSP in folder |
- Add a breakpoint in JSP in folder.
- Start debugger by menu item Run|Run File|Debug....
- Continue and finish debugger.
|
|
| RESULT: Debugger stops at breakpoint. |
| Use also shortcut Ctrl+Shift+F5 and menu item "Debug file" on the file. |
|
| 8 | Start debugger with running session |
- Start debugger.
- When breakpoint is reached, start debugger again.
- A message in output window should inform you that server is in suspended state.
- Finish debugger.
|
|
|
| 9 | Run project when debugging |
- Start debugger.
- When breakpoint is reached, try to run project.
- A message in output window should inform you that server is in suspended state.
- Finish debugger.
|
|
|
| 10 | Stop server when debugging |
- Start debugger and wait until it stops at breakpoint
- Open context menu on server node in Runtime view.
- Check it is not possible to stop and start server. All Start, Restart Stop items should be disabled.
- Check also state of buttons in output view.
|
|
| RESULT: Items disabled. |
| 11 | Two sessions - Java debugging |
- Start debugger
- Create java application, add a breakpoint and call menu item 'Debug Project' on project's root node
- Open Sessions view (Windows|Debugging|Sessions) and check there are two sessions with correct names
- Double click web application session to make it current
- Call ' Finish All' action in popup in Session View
|
|
| RESULT: Two sessions coexist together. Make current action brings file with breakpoint to front. |
| 12 | Attach to external Tomcat |
- Create a web application and run it
- Check properties of Bundled Tomcat server instance. Debugger Type should be 'Shared Memory'. Copy name 'tomcat_shared_memory_id' to clipboard.
- Stop server
- Start Server in debug mode
- Call menu item 'Run|Attach Debugger...' and in Attach dialog fill in the following fields: Connector - SharedMemoryAttach, Name - tomcat_shared_memory_id
- Click OK in Attach dialog
- Add breakpoint into index.jsp in your web application and reload application in browser
- Debugger should stop at breakpoint
- Finish debugging
- Stop server
- Change Debugging Type in properties to 'Socket'
- Start server in debug mode
- Call menu item 'Run|Attach Debugger...' and in Attach dialog fill in the following fields: Connector - SocketAttach, Host - localhost, Port - 11555
- Click OK in Attach dialog
- Reload application in browser
- Debugger should stop at breakpoint
- Finish debugging
|
|
|
| Shared memory is available only on Windows. |
|