File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 11-c requirements.txt
2+ debugpy # for vscode debugging
23django-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
44 # via
55 # -c ./requirements.txt
66 # django
7+ debugpy == 1.8.13
8+ # via -r ./requirements-dev.in
79django == 4.2.16
810 # via
911 # -c ./requirements.txt
1012 # django-debug-toolbar
1113django-debug-toolbar == 4.4.6
1214 # via -r ./requirements-dev.in
13- pydevd-pycharm == 243.22562.180
15+ pydevd-pycharm == 243.26053.29
1416 # via -r ./requirements-dev.in
1517sqlparse == 0.5.1
1618 # 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