Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #64 from pullhub/console
Browse files Browse the repository at this point in the history
add launch.json 'console' option, and some minor changes
  • Loading branch information
Morten N.O. Nørgaard Henriksen authored Mar 1, 2019
2 parents fd1f8ed + 8d97345 commit a10fa81
Show file tree
Hide file tree
Showing 11 changed files with 504 additions and 162 deletions.
44 changes: 39 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
},
"main": "./out/extension",
"activationEvents": [
"onCommand:extension.perl-debug.provideInitialConfigurations"
"onDebug"
],
"contributes": {
"breakpoints": [
Expand All @@ -111,8 +111,30 @@
"configurationAttributes": {
"launch": {
"required": [
"root",
"program"
"root"
],
"anyOf": [
{
"required": [
"program"
]
},
{
"properties": {
"console": {
"enum": [
"remote"
]
}
}
},
{
"not": {
"required": [
"port"
]
}
}
],
"properties": {
"exec": {
Expand Down Expand Up @@ -162,8 +184,18 @@
},
"port": {
"type": "number",
"description": "Port to listen for remote debuggers.",
"default": 5000
"description": "Port to listen for remote debuggers."
},
"console": {
"type": "string",
"enum": [
"integratedTerminal",
"externalTerminal",
"remote",
"none"
],
"description": "Where to launch the debug target",
"default": "integratedTerminal"
}
}
}
Expand All @@ -173,6 +205,7 @@
"type": "perl",
"request": "launch",
"name": "Perl-Debug local",
"console": "integratedTerminal",
"program": "${workspaceFolder}/${relativeFile}",
"exec": "perl",
"execArgs": [],
Expand All @@ -186,6 +219,7 @@
"type": "perl",
"request": "launch",
"name": "Perl-Debug remote",
"console": "remote",
"program": "${workspaceFolder}/${relativeFile}",
"root": "${workspaceRoot}/",
"stopOnEntry": true,
Expand Down
Loading

0 comments on commit a10fa81

Please sign in to comment.