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
22django-debug-toolbar
33pydevd-pycharm==243.22562.180 # pinned to appropriate version for current pycharm
4+ debugpy # for vscode debugging
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