You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/troubleshooting.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,24 @@
1
1
# Troubleshooting
2
2
3
+
## "Permission denied" / "CAP_SYS_PTRACE"
4
+
5
+
On Linux and in containers, you need the `CAP_SYS_PTRACE` capability to attach to a running process. See the [Python remote debugging docs](https://docs.python.org/3/howto/remote_debugging.html) for details.
6
+
7
+
**Kubernetes:** Add to your deployment:
8
+
```yaml
9
+
securityContext:
10
+
capabilities:
11
+
add:
12
+
- SYS_PTRACE
13
+
```
14
+
15
+
**Docker:** Run with `--cap-add=SYS_PTRACE`:
16
+
```bash
17
+
docker run --cap-add=SYS_PTRACE ...
18
+
```
19
+
20
+
**Note:** macOS may require running with elevated privileges (`sudo`) instead of `CAP_SYS_PTRACE`.
21
+
3
22
## "No module named 'debugpy'"
4
23
5
24
The target pod doesn't have debugpy installed. Add debugpy to your application dependencies.
@@ -11,11 +30,13 @@ The target pod doesn't have debugpy installed. Add debugpy to your application d
11
30
3. Verify path mappings in `launch.json` or DAP config
12
31
4. Check Python version compatibility (3.14+ required)
13
32
33
+
34
+
14
35
## Breakpoints not hitting
15
36
16
37
**Path mappings:** Ensure your `launch.json` maps local to remote paths correctly.
17
38
18
39
**Multiple pods:** If you have multiple replicas, requests may be load-balanced to a different pod than the one you're debugging. You can:
19
40
- Set `DEBUGWAND_AUTO_SELECT_POD=1` to automatically select the newest pod
20
41
- Scale down to a single replica during debugging
21
-
- Use pod selection to choose the specific pod handling your traffic
42
+
- Use pod selection to choose the specific pod handling your traffic
0 commit comments