With the GeneXus IDE you can debug GeneXus code, such as with other development environments (Visual Studio, NetBeans, etc.) you can debug native code (C#, Java, Ruby, etc.).
To debug the application you have to add a breakpoint and run the application. When the breakpoint is found GeneXus gets the focus and you can check attribute and variable values using the "watch" tool window. In addition, the "Call Stack" window shows you the objects excecuted from beginning of the execution.
Basic steps to debug your code:
- Select the Debug configuration.
- Add objects you want to debug to the debug tool window.
- Run the application (F5).
Objects added to the debug tool window are generated again with debug information.
- Open one of the objects added to the debug tool window and set a break-point anywhere in the code.
- Start using the application. It will stop executing at the selected break-point and GeneXus will get the focus.
- Use the Debug toolbar to execute, step by step, add watch variables or change their value.
- Objects generated with Debug information execute slower. In case of extreme performance degradation, see SAC #39137
- Notice that the release code will be generated after rebuilding using the 'Release' configuration option.
- The debugger works with Server Side Code.
Profiling in GeneXus