If the application that you are debugging is running, you can halt it by suspending thread execution. When you are debugging an application and you choose to suspend thread execution, the thread will suspend at the first possible statement (typically, thread execution only occurs after certain scripts have been run - so you can only issue a suspend action at that time). When you issue a suspend action, the thread remains suspended until you until you issue a Resume action.
When you are debugging JSP pages that generate script or forms in HTML and you want to suspend execution for that script, you need to issue a suspend action on the thread before launching the script action. If you do not suspend the thread, the debugger will not stop within that action.
To suspend an executing thread, complete these steps:
If you run script in the browser being debugged, the application will halt at the first possible statement. When the application is halted, the current line of execution will be highlighted in the editor.
To resume a suspended thread, complete these steps:
The thread will resume execution, and stack frames will no longer be displayed for the thread.