Creating a Python initialization script via the Watch Window

29-Apr-2024

If you need to for example repeatedly inject data into your application to test a piece of code, the Watch Window can generate a Python script that writes data to memory exactly as it is configured in the Watch Window.


Solution

1. Open the Watch Window via the View / Debug / Watch Window.

2. Set the values that you want the Python script to initialize.

3. Select the item you want to include in the Python script. 

4. Right-click in the Watch Window and select Create Initialization Script. 

5. Save the script to your PC to your workspace directory in order to run it from Tools / External Scripts


More resources

Was this answer helpful?