Creating initialization scripts
Watches window can create a Python initialization script. All selected watches (which can be modified) are exported to a Python file along with their current values:
Select watch expressions. |
Right click and select Create Initialization Script. |
Save the Python script. |
The script is using standard isystem.connect Python syntax and can be executed as such.
Run the script. |
•Via Tools / Run scripts
•Via Tools / External Scripts / Your_script.py
•Drag and drop the saved script to winIDEA Editor, press F6 and the script will be executed.
If regular watch pane is used, monitor access will be used to perform the modification. If real-time watch pane is used, real-time access will be used. This setting can be manually overridden by editing the Python file. |
When generating an initialization script from the Watch window variable values will be used as displayed in the Watch window. This may be problematic for the char variables, as most commonly they are displayed in ASCII (integer) format. This format will not work in the initialization script. In order to change the display format of the char variables go to Debug / Debug options / Symbols / Character display and choose Integer.