Difference between revisions of "VMS IDE Python"

From VSI OpenVMS Wiki
Jump to: navigation, search
(How to run)
(How to run)
Line 19: Line 19:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Name !! Value
+
! Property !! Meaning
 
|-
 
|-
 
| "type": "vms python debugger" ||  
 
| "type": "vms python debugger" ||  

Revision as of 11:17, 7 February 2020

Python

Python debugger allows debugging Python scripts on VMS.

Features

  1. Running python script on VMS side
  2. Breakpoints
  3. Displaying local variables in each accessible frame
  4. Multithreading
  5. Post-mortem information about unhandled exceptions.
  6. Changing variable value
  7. Jump to cursor inside a frame

How to run

  1. Setup SSH settings
  2. 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 scripts. Masks used only for synchronization, no difference between is it a source, headers e.t.c.
  3. Setup launch: open launch.json, then "Add configuration" => "VMS IDE: Launch Python script".
Property Meaning
"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.