Difference between revisions of "VMS IDE Python"
(→How to run) |
(→How to run) |
||
Line 21: | Line 21: | ||
! Property !! Meaning | ! Property !! Meaning | ||
|- | |- | ||
− | | "type": "vms python debugger" || | + | | "type": "vms python debugger" || do not change |
|- | |- | ||
− | | "request": "launch"|| | + | | "request": "launch"|| do not change |
|- | |- | ||
− | | "name": "Launch Python Script" || | + | | "name": "Launch Python Script" || write an unique name |
|- | |- | ||
| "script": "${file}" || file name or "${file}" for currently opened file under cursor | | "script": "${file}" || file name or "${file}" for currently opened file under cursor | ||
|- | |- | ||
− | | "port": "55005-55025" || range of local ports on VMS | + | | "port": "55005-55025" || range of local ports on VMS, used for communication between tracer and server scripts |
|- | |- | ||
| "arguments": "" || script arguments | | "arguments": "" || script arguments |
Revision as of 05:08, 28 February 2020
Python
Python debugger allows debugging Python scripts on VMS.
Features
- Running python script on VMS side
- Breakpoints
- Displaying local variables in each accessible frame
- Multithreading
- Post-mortem information about unhandled exceptions.
- Changing variable value
- Jump to cursor inside a frame
How to run
- Setup SSH settings
- Setup project settings: because Python scripts do not need compilation, not all settings are required. Only those which are required for synchronization. So "outdir", "root" and include/exclude masks do matter. Outdir is used only for holding debugger own scripts. Masks used only for synchronization. There is no difference between whether it is a source, headers e.t.c.
- Setup launch: open launch.json, then "Add configuration" => "VMS IDE: Launch Python script".
Property | Meaning |
---|---|
"type": "vms python debugger" | do not change |
"request": "launch" | do not change |
"name": "Launch Python Script" | write an unique name |
"script": "${file}" | file name or "${file}" for currently opened file under cursor |
"port": "55005-55025" | range of local ports on VMS, used for communication between tracer and server scripts |
"arguments": "" | script arguments |
Select this launch and press F5. Script always stops at the first line.