Adding Error Breakpoints

Error breakpoints allow errors catching : you can add an error breakpoint to stop execution of your script if an error is raised.

Select Add Error Breakpoint item in main Run menu, or click on [ Add Error Breakpoint ] button to add an error breakpoint. Select error you want to catch in dialog box. For your information, errors name in the list contain Safe X3 error code, such as 10 for Type incompatibility.

Add Error Breakpoint dialog box :

Add Error Breakpoint dialog box

Also, the new breakpoint appears in the Breakpoints View list.

While the breakpoint is enabled, thread execution suspends after its error raised. The debugger selects the thread that has suspended and displays the thread's stack frames. The line which raised the error is highlighted in the editor in the Debug Perspective.

Related concepts

Safe X3 Debugger
Breakpoints
Breakpoints View