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: README.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,3 +77,39 @@ If you intend to actively develop CubitPy, please make sure to install the `pre-
77
77
```bash
78
78
pre-commit install
79
79
```
80
+
81
+
## Debugging in VS Code and PyCharm
82
+
83
+
When debugging, IDEs may try to attach to subprocesses, which can cause issues. The instructions below show how to disable this behavior in VS Code and PyCharm.
84
+
85
+
### VS Code
86
+
87
+
To prevent the debugger from attaching to subprocesses, add the following to your `.vscode/launch.json`:
88
+
89
+
```json
90
+
{
91
+
// Use IntelliSense to learn about possible attributes.
92
+
// Hover to view descriptions of existing attributes.
93
+
"version": "0.2.0",
94
+
"configurations": [
95
+
{
96
+
"name": "Python: Launch current file",
97
+
"type": "debugpy",
98
+
"request": "launch",
99
+
"program": "${file}", // Launches the currently open file
100
+
"console": "integratedTerminal", // or "externalTerminal"if needed
101
+
"subProcess":false, // Disables debugging for subprocesses and libraries
0 commit comments