-
Notifications
You must be signed in to change notification settings - Fork 37
Developing HERON in VSCode
Paul Talbot edited this page Sep 15, 2020
·
2 revisions
VSCode has become a very popular development environment for cross-platform developers, with many useful features. While HERON has no direct affiliation with VSCode, some frequently requested resources are placed here in case they are of benefit.
This is a work in progress, please request additional entries if you see something missing.
You can set up debugging RUN configurations for HERON. An example is included here for user talbpw
. Note that you'll have to change paths for the specific files you want to run in the args
section of each configuration.
To get to the configurations, in VSCode, go under "Run" then "Open Configurations."
{{
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
},
{
"name": "RAVEN",
"type": "python",
"request": "launch",
"pythonPath": "${command:python.interpreterPath}",
"program": "/Users/talbpw/projects/raven/framework/Driver.py",
"cwd": "/Users/talbpw/projects/raven/tests/framework",
"args": ["test_output.xml"],
},
{
"name": "HERON",
"type": "python",
"request": "launch",
"pythonPath": "${command:python.interpreterPath}",
"program": "/Users/talbpw/projects/heron/src/main.py",
"cwd": "/Users/talbpw/projects/heron/tests/integration_tests/validator",
"args": ["heron_input.xml"],
},
{
"name": "Outer",
"type": "python",
"request": "launch",
"pythonPath": "${command:python.interpreterPath}",
"program": "/Users/talbpw/projects/raven/framework/Driver.py",
"cwd": "/Users/talbpw/projects/heron/tests/integration_tests/validator",
"args": ["outer.xml"],
},
{
"name": "Inner",
"type": "python",
"request": "launch",
"pythonPath": "${command:python.interpreterPath}",
"program": "/Users/talbpw/projects/raven/framework/Driver.py",
"cwd": "/Users/talbpw/projects/heron/tests/integration_tests/validator/Sweep_Runs_o/sweep/1",
"args": ["inner.xml"],
}
]
}
}