Show TOC

Managing the Debugged ProcessLocate this document in the navigation structure

Use

You use this procedure to debug a running process in step-by-step mode. To do that, you use the Debug perspective in the SAP NetWeaver Developer Studio .

To manage the debugged process, first you start the debug configuration. After that, you use different stepping options to go through the process.

You can use the Step Over option when you want to move to the next flow object in the debugged process. Note that you can go directly to the next flow object no matter whether or not that flow object has a breakpoint.

You can use the Step Into option when you are at a point in the process which is a referenced or embedded sub-process flow object. With the Step Into option you go into the sub-process and continue debugging the inner flow.

You can step out of the sub-process and return to the parent process. To do that, you use the Resume option of the sub-process. You are returned to the next breakpoint in the parent process that is after the flow object you stepped into.

You can also use the Resume option when you want to move to the next breakpoint in the process.

You use the Terminate option to terminate debugging the process.

Prerequisites
Procedure

Starting the Debug Configuration

  1. In the Debug perspective, choose Start of the navigation path Run Next navigation step Debug Configurations... End of the navigation path.

    Alternatively, you can start the Debug Configurations wizard directly from the Process Development perspective when you choose the Debug icon and then choose Debug Configurations... .

  2. In the wizard that appears, expand Process and select a debug configuration.

  3. In the debug configuration, choose the Debug pushbutton.

  4. Log on to the AS Java with your username and password, if prompted.

  5. (Optional) Select the Remember Username and Password checkbox. Your credentials are stored in an encrypted form on the secure storage. You can edit the secure storage settings in Start of the navigation path Window Next navigation step Preferences Next navigation step General Next navigation step Security Next navigation step Secure Storage End of the navigation path.

  6. (Optional) Select the Secure connection checkbox to enable debugging over HTTPS protocol.

    You have started your debug configuration. It appears in the Debug view of the Debug perspective.

Moving to the Next Flow Object

  1. In the Debug view, expand a debug configuration.

  2. In the context menu of the process in the debug configuration, choose Step Over .

    You are moved to the next flow object in the process.

    Note

    Alternatively, you can use the Step Over pushbutton in the Debug view.

  3. Repeat the above steps to go to the next flow object.

Debugging the Inner Flow of a Sub-Process

  1. In the Debug view, expand a debug configuration.

  2. In the context menu of the process in the debug configuration, choose Step Into .

    Note

    You can only use this option if you are at a point in the process which is a referenced or embedded sub-process. You can debug the inner flow of these flow objects. An additional thread for the debugged inner flow appears in the Debug view of the Debug perspective if you debug a referenced sub-process.

    In case you debug an embedded sub-process and there are breakpoints on start and end events that are without a trigger, these breakpoints are ignored. The process execution does not stop at these breakpoints. If there is an escalation end event with a breakpoint, this breakpoint is not ignored.

  3. To step out of a sub-process, in the context menu of the parent process, choose Resume .

    You are returned to the next breakpoint in the parent process that is after the sub-process flow object you stepped into.

Moving to the Next Breakpoint

  1. In the Debug view, expand a debug configuration.

  2. In the context menu of the process in the debug configuration, choose Resume .

    You are moved to the next breakpoint in the process.

  3. Repeat the above steps to go to the next breakpoint.

Terminating the Debugging Process

  1. In the Debug view, expand a debug configuration.

  2. In the context menu of the process in the debug configuration, choose one of the available terminate options depending on how you want to terminate the debugging.