Entering content frameProcedure documentation Executing Programs in Debugging Mode Locate the document in its SAP Library structure

Use

You use this procedure to execute programs in debugging mode when you are debugging HTML templates.

The HTMLBusiness debugger supports all the standard debugging functions that control the flow of program execution.

Prerequisites

You have started a debugging session.

Procedure

When you have started a debugging session, you can execute the program gradually or interrupt the program execution using the functions, which you can start either from the debug toolbar or the Debug menu, as described in the table below:

Function

Effect

Show Next Statement or
Debug ® Show Next Statement

Points to next statement in program execution.

Go or
Debug ® Go

Allows the program to run until it:

  • Hits a breakpoint or watchpoint you have set
  • Hits an implicit breakpoint (as defined by choosing Debug ® Preferences)
  • Hits an exception
  • Finishes

Step Into or
Debug ® Step Into

Steps through a single line of code.

If this code calls a function or contains a file include operation, the debugger steps into the function or file.

Step Over
or Debug ® Step Over

Steps through a single line of code.

If this code calls a function or contains a file include operation, the debugger steps over this function or file.

Step Out or
Debug ® Step Out

Steps out of the current function (or current file, if included from another file) and returns control to the next outer stack frame.

Run To Cursor or
Debug ® Run To Cursor

Executes the program to run as far as the line of code where the cursor is positioned, unless it is interrupted by a breakpoint or other condition before it reaches this line.

Break or
Debug ® Break

Interrupts the program execution as soon as possible and transfers control to the debugger.

This is useful if, for example, the session is currently executing a file and it is stuck in an endless loop.

As you execute the program with these functions, you can perform debugging tasks.

Leaving content frame