Writing debugger scripts

The debugger allows you to write scripts in the Java programming language. A script is a Java class that extends the sybase.asa.procdebug.DebugScript class.

When the debugger runs a script, it loads the class and calls its run method. The first parameter of the run method is a pointer to an instance of the class. This interface lets you interact with and control the debugger.

A debugger window is represented by the “sybase.asa.procdebug.IDebugWindow interface”.

You can compile scripts with a command such as the following:

javac -classpath %asany%/procdebug/ProcDebug.jar;%classpath% myScript.Java.