Commit 515a899
Target Xdebug at loopback, not host.docker.internal
host.docker.internal only works when the IDE and the workspace share a
Docker host — true for local docker-compose, false for Coder, where the
workspace runs on a remote deployment and the IDE lives on the
developer's laptop.
JetBrains Gateway and VS Code Remote set up reverse SSH tunnels to the
workspace container, so the IDE's debug listener is reachable at
127.0.0.1:9003 from inside the container. Point client_host there and
pin client_port=9003. Keep discover_client_host=true for web-request
flows where REMOTE_ADDR identifies the caller.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1e5a3ab commit 515a899
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | | - | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
0 commit comments