Skip to content

Commit

Permalink
Fixes #191. Add Configuration doesn't show PHP when selecting `Add Co…
Browse files Browse the repository at this point in the history
…nfiguration` in a VS Code launch.json file PHP is no longer shown as an option. The new `configurationSnippets` resolves this.
  • Loading branch information
zobo committed Mar 23, 2021
1 parent c18654d commit c839d64
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,30 @@
"cwd": "${fileDirname}",
"port": 9000
}
],
"configurationSnippets": [
{
"label": "PHP: Listen for Xdebug 2",
"description": "Listen for incoming XDebug connections",
"body": {
"name": "Listen for Xdebug 2",
"type": "php",
"request": "launch",
"port": 9000
}
},
{
"label": "PHP: Launch currently open script 2",
"description": "Debug the currently open PHP script in CLI mode",
"body": {
"name": "Launch currently open script 2",
"type": "php",
"request": "launch",
"program": "^\"${1:\\${file\\}}\"",
"cwd": "^\"${2:\\${fileDirname\\}}\"",
"port": 9000
}
}
]
}
]
Expand Down

0 comments on commit c839d64

Please sign in to comment.