Creating a Jython script
Shows a typical workflow for creating and running a Jython script in the debugger.
- Create an empty Jython script file.
- Right-click the Jython script file and select Open.
Add the following code to your file in the editor:
from arm_ds.debugger_v1 import Debugger from arm_ds.debugger_v1 import DebugExceptionNote
With this minimal code saved in the file you have access to auto-completion list and online help. ARM recommends the use of this code to explore the Jython interface.
Figure 7-4 Jython auto-completion and help
- Edit the file to contain the desired scripting commands.
- Run the script in the debugger.
You can also view an entire Jython interface in the debugger by selecting a debugger object or interface followed by the keyboard and mouse combination Ctrl+Click. This opens the source code that implements it.