7.8 Creating a Jython script

Shows a typical workflow for creating and running a Jython script in the debugger.

Procedure

  1. Create an empty Jython script file.
  2. Right-click the Jython script file and select Open.
  3. Add the following code to your file in the editor:
    from arm_ds.debugger_v1 import Debugger
    from arm_ds.debugger_v1 import DebugException					

    Note:

    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
    Jython auto-completion and help


  4. Edit the file to contain the desired scripting commands.
  5. 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.

Non-ConfidentialPDF file icon PDF versionARM DUI0446Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.