SES Debugger

by Solistra

The SES Debugger on a break point.

Summary

This script provides a simple debugger with break point functionality using the SES Tracer and SES Console. Essentially, you establish a series of break points on specific lines within scripts in the Ace Script Editor — when the line is encountered, execution stops and the SES Console is opened with the active class at the time of the break as the context. This is primarily a scripter’s tool.

Detailed usage information is available from the source repository where the script is stored.

Features

  • Dynamic setting of break points in code execution.
  • Displays code surrounding the break point when encountered.
  • Console context is automatically set to the object which triggered the break point.
  • Iterates over defined break points until stopped.

Script

This script is available from the SES source repository. The specific file to download is ‘lib/debugger.rb’.

Installation

This script requires the SES Core (v2.0), Tracer (v1.2), and Console (v1.0) scripts in order to function. All of these scripts may be found here.

Place this script below Materials, but above Main. Place this script below the SES Core, SES Console, and SES Tracer, but above all other custom scripts.

License

This script is made available under the terms of the MIT Expat license.