Debugging an Atelier Application
In order to debug an Atelier application, you need a launch configuration. See
Creating an Atelier Launch Configuration.
You can access a configuration in a number of ways, including:
- Right click on a class or routine file and select Debug As > Debug Configurations then select the configuration
- Select Run > Debug Configurations... from the main menu bar, then select the configuration
and click Debug.
- If you have used the configuration previously, select it from the Debug history button () on the toolbar. Clicking the button runs the last-run configuration again, and the arrow to the right opens a list of recently-used configurations.
The exact actions you need to take to debug your code depend on the nature of your application and the problem you are trying to solve. The following steps provide a general outline of the process.
- Use a launch configuration, as described previously, to run a class in debug mode.
- Atelier opens the class or routine you are debugging in the editor, and initiates a switch to the Debug perspective, asking for confirmation. This perspective provides views and commands needed for debugging. Click Yes.
- If you have not set breakpoints, the program runs to completion.
- Add one or more breakpoints by double clicking in the margin at the left edge of the editor pane.
Use the debug history button to debug the class again. Execution stops at the first breakpoint.
- You can use the toolbar buttons or Run menu commands to resume or step through, or terminate execution.
- Add, remove, enable, and disable breakpoints in the editor.
- You can also examine and manage breakpoints in the breakpoints view.
- Examine the value of variables in the variables and expressions views.
When you debug a launch configuration, the code stops at any breakpoints that have been set. To run without stopping at breakpoints, see Running an Atelier Application.
Running and Debugging an Atelier Application
Creating an Atelier Launch Configuration
Running an Atelier Application