Difference between revisions of "VMS IDE Python"
(Created page with "== Python == Python debugger is in experimental state. Works fine only for Python 2.7 = Features = # Run python script on VMS side # Breakpoints # Displaying local variable...") |
|||
Line 1: | Line 1: | ||
== Python == | == Python == | ||
− | Python debugger | + | Python debugger allows debugging Python scripts on VMS. |
= Features = | = Features = | ||
− | # | + | # Running python script on VMS side |
# Breakpoints | # Breakpoints | ||
# Displaying local variables in each accessible frame | # Displaying local variables in each accessible frame | ||
Line 10: | Line 10: | ||
# Post-mortem information about unhandled exceptions. | # Post-mortem information about unhandled exceptions. | ||
# Changing variable value | # Changing variable value | ||
− | # Jump to cursor inside a frame | + | # Jump to cursor inside a frame |
= How to run = | = How to run = | ||
# Setup SSH settings | # Setup SSH settings | ||
− | # Setup project 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 are matter. Outdir is used only for holding debugger scripts. Masks used only for synchronization, no difference between is it a source, headers e.t.c. |
# Setup launch: open launch.json, then "Add configuration" => "VMS IDE: Launch Python script". | # Setup launch: open launch.json, then "Add configuration" => "VMS IDE: Launch Python script". | ||
{| class="wikitable" | {| class="wikitable" |
Revision as of 11:15, 7 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 are matter. Outdir is used only for holding debugger scripts. Masks used only for synchronization, no difference between is it a source, headers e.t.c.
- Setup launch: open launch.json, then "Add configuration" => "VMS IDE: Launch Python script".
Header text | Header text |
---|---|
"type": "vms python debugger" | |
"request": "launch" | |
"name": "Launch Python Script" | just name |
"script": "${file}" | file name or "${file}" for currently opened file under cursor |
"port": "55005-55025" | range of local ports on VMS |
"arguments": "" | script arguments |
Select this launch and press F5. Script always stops at the first line.