Debug menu

Options on the Debug menu execute the application in debug mode. Some options may not display, depending on the context.

Table 1. Debug Menu
Menu Option Usage
Execute Execute selected application. If no application is selected, the default application is executed.
Execute with Profiler Execute selected or default application with Profiler. See Profiler.
Execute with Trace Execute selected or default application and trace the function calls. See Execution trace.
Debug Begin program execution, debugging up to the first breakpoint or interruption. See Start a program in debug mode.
Attach to Process Debug a running application. See Debug a running program.
Attach to Mobile Process Debug a mobile application. See Attach the Graphical Debugger to a mobile process.
Quick Run Compile the selected Genero .4gl file using the current configuration and launches the DVM to run the file. If the file is found in a project, it uses the current project environment.

If the code opens forms, those forms are not automatically compiled.

If the code references database schemas, those schemas should be made available by setting the correct environment.

Create test Launch your application to create a test scenario. See Create and run a unit test.
Next Execute the current line and stop at the next source line in the current function. If this source code line is a call to another function, you can Step in or Step out.
Step in Step into the current function, executing the next source line inside the called function.
Step out Step out of the called function before it ends, returning to the next source line following the CALL statement.
Note:

Some complex instructions such as CONSTRUCT or FOR loops need two steps before going to the next instruction: one step to prepare the statement, one step to execute it.

Continue Resume program execution until another breakpoint is reached, a watchpoint is triggered, or the program terminates.
Interrupt Stop the execution of the program being debugged, return control to the debugger, display the current line being executed, and update debugger views. This allows you to interrupt a program that is in an endless loop, or that is displaying a form.
Up Display the calling function. The up command advances toward the outermost frame each time it is processed. See Execution flow.
Down Return to the inner frame down to the last executed line. See Execution flow.
Record Macro Start recording Debugger commands.
Stop Record Stop command recording and store the commands in a file.
Play Macro Execute the recorded commands from the file.
Add/Delete Breakpoint Set or remove a breakpoint for the current line. See Breakpoints.
Enable/Disable Breakpoint Re-activate or disable the breakpoint for the current line. See Breakpoints.
Abort Last Task Terminate the debugger session. See Stop the Debugger.