File tree Expand file tree Collapse file tree 4 files changed +32
-2
lines changed Expand file tree Collapse file tree 4 files changed +32
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 0.2.0" ,
3
+ "configurations" : [
4
+ {
5
+ "name" : " Python: Attach to Docker" ,
6
+ "type" : " python" ,
7
+ "request" : " attach" ,
8
+ "connect" : {
9
+ "host" : " localhost" ,
10
+ "port" : 12345
11
+ },
12
+ "pathMappings" : [
13
+ {
14
+ "localRoot" : " ${workspaceFolder}" ,
15
+ "remoteRoot" : " /code"
16
+ }
17
+ ]
18
+ }
19
+ ]
20
+ }
Original file line number Diff line number Diff line change 1
1
-c requirements.txt
2
+ debugpy # for vscode debugging
2
3
django-debug-toolbar
3
- pydevd-pycharm==243.22562.180 # pinned to appropriate version for current pycharm
4
+ pydevd-pycharm==243.26053.29 # pinned to appropriate version for current pycharm
Original file line number Diff line number Diff line change @@ -4,13 +4,15 @@ asgiref==3.8.1
4
4
# via
5
5
# -c ./requirements.txt
6
6
# django
7
+ debugpy == 1.8.13
8
+ # via -r ./requirements-dev.in
7
9
django == 4.2.16
8
10
# via
9
11
# -c ./requirements.txt
10
12
# django-debug-toolbar
11
13
django-debug-toolbar == 4.4.6
12
14
# via -r ./requirements-dev.in
13
- pydevd-pycharm == 243.22562.180
15
+ pydevd-pycharm == 243.26053.29
14
16
# via -r ./requirements-dev.in
15
17
sqlparse == 0.5.1
16
18
# via
Original file line number Diff line number Diff line change
1
+ def set_trace ():
2
+ import debugpy
3
+
4
+ # Listen on all interfaces at port 5678
5
+ debugpy .listen (("172.17.0.1" , 12345 ))
6
+ print ("Waiting for debugger to attach..." )
7
+ debugpy .wait_for_client () # Optional: pause execution until VS Code attaches
You can’t perform that action at this time.
0 commit comments