You copied the Doc URL to your clipboard.

Scripts view

Use the Scripts view to work with scripts in Arm® Development Studio. You can create, run, edit, delete, and configure parameters for the various types of scripts supported by Development Studio.

Note

  • Scripts are dependent on a debug connection. To work with scripts, first create a debug configuration for your target and select it in the Debug Control view.
  • Debugger views are not updated when commands issued in a script are executed.

Figure 15-42 Scripts view

Scripts view

Using the Scripts view, you can:

Create a script

To create a script, click createbtn to display the Save As dialog box. Give your script a name and select the type of script you want. You can choose any of the following types:

  • Debugger Script (*.ds)
  • Jython script (*.py)
  • Text file (*.txt)

The script opens in the editor when you save it.

Import scripts

Click importbtn to view options for importing scripts.

Import an Arm DS or Jython script

To import a Development Studio or Jython script, click importdsjythonscriptbtn and browse and select your file.

Import and translate a CMM script

To import and translate a CMM script:

  1. Click importandtranslateacmmscriptbtn and browse and select your file.
  2. Click Open.
  3. In the Translation Save Location dialog, choose a location to store the translated file.
  4. Click OK to translate the file and save it at the selected location.
Add additional use case script directories

To add more use case script directories, click addusecasescriptdirbtn and either enter the folder location or click Browse to the script folder location.

Note

To change the location for other scripts that are supported in Arm Debugger, from the main menu, select Window > Preferences > Arm DS > Debugger > Console . Then, select the Use a default script folder option, and either enter the folder location or click Browse to the script folder location.
Execute your script

After connecting to your target, select your script and click executescriptbtn to execute your script. You can also double-click a script to run it.

Note

When working with use case scripts, you must select the use case configuration usecaseconfigbtn to run your script.
Edit your script

Select your script and click editscriptbtn to open the script in the editor.

Delete your script

Select the script that you want to delete and click deletescriptbtn . Confirm if you want to delete the script from the view, or if you want to delete from the disk, and click OK.

Refresh the script view

Click refreshviewbtn to refresh the view.

Configure script options

Select a script, and click configscriptbtn to configure script options.

Recents and Favorites

After you run a script, you can easily access it again from the Recent list. The Scripts view stores the five most recently run scripts. When you run a new script it appears at the top of the list.

Figure 15-43 Recent scripts

Recent scripts

Add to Favorites

You can add your frequently accessed scripts to a list of favorites to easily access them later. To add a script to the list of favorites, right-click the script, and select Add to favorites.

Figure 15-44 Add to favorites

Add to favorites

Remove from favorites

To remove your scripts from the Favorites list, right-click a script and select Remove from favorites.

Figure 15-45 Remove from favorites

Remove from favorites

To delete multiple scripts, select them with Ctrl+click and press the Delete key.

Tip:

You can also access your favorites and recently accessed scripts from the Commands view.

Figure 15-46 Running scripts from the Commands view

Running scripts from the Commands view

Was this page helpful? Yes No