7.7 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.
Related concepts
7.4 About Jython scripts
Related tasks
7.6.1 Creating a new Jython project in Eclipse for DS-5
7.6.2 Configuring an existing project to use the DS-5 Jython interpreter
7.8 Running a script
Related reference
11.21 Scripts view
7.5 Jython script concepts and interfaces
11.37 Script Parameters dialog box
Non-ConfidentialPDF file icon PDF versionARM DUI0446W
Copyright © 2010-2015 ARM. All rights reserved.