Skip to content

Commit 207686a

Browse files
committed
Merge pull request #4 from gianugo/master
Add note for debugServer setting in launch.json
2 parents ad922e4 + a6c8281 commit 207686a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ As an example, for Powershell on Windows it could look like this:
6868
PS C:\Users\felix\github\vscode-php-debug> code .\testproject\ --extensionDevelopmentPath=$pwd
6969
```
7070

71-
VS Code will open an "Extension Development Host" with the debug adapter running.
71+
VS Code will open an "Extension Development Host" with the debug adapter running. Open `.vscode/launch.json` and
72+
uncomment the `debugServer` configuration line. Hit `F5` to start a debugging session.
7273
Now, you can debug the testproject like specified above and set breakpoints inside your first VS Code instance to step through the adapter code.
7374

74-
[![Gitter](https://badges.gitter.im/felixfbecker/vscode-php-debug.svg)](https://gitter.im/felixfbecker/vscode-php-debug?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
75+
[![Gitter](https://badges.gitter.im/felixfbecker/vscode-php-debug.svg)](https://gitter.im/felixfbecker/vscode-php-debug?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

testproject/.vscode/launch.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"version": "0.2.0",
3+
// "debugServer": 4711, // Uncomment for debugging the adapter
34
"configurations": [
45
{
56
"name": "Listen for XDebug",
@@ -8,4 +9,4 @@
89
"port": 9000
910
}
1011
]
11-
}
12+
}

0 commit comments

Comments
 (0)