Skip to content

Commit ac72f7a

Browse files
committed
experimental debugging of django and support for stopOnEntry
1 parent 20b342c commit ac72f7a

15 files changed

+1093
-280
lines changed

.vscode/launch.json

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"stopOnEntry": false,
1414
"sourceMaps": true,
15-
"outDir": "out/src",
15+
"outDir": "${workspaceRoot}/out/src",
1616
"preLaunchTask": "npm"
1717
},
1818
{
@@ -29,13 +29,43 @@
2929
"runtimeArgs": [
3030
"--harmony"
3131
],
32-
"program": "./out/client/debugger/vs/vsdebugger.js",
32+
"program": "${workspaceRoot}/out/client/debugger/vs/PythonDebugger.js",
3333
"stopOnEntry": false,
3434
"args": [
3535
"--server=4711"
3636
],
3737
"sourceMaps": true,
38-
"outDir": "./out/client"
38+
"outDir": "${workspaceRoot}/out/client"
39+
},
40+
{
41+
"name": "Attach to python_django debug server",
42+
"type": "node",
43+
"request": "launch",
44+
"runtimeArgs": [
45+
"--harmony"
46+
],
47+
"program": "${workspaceRoot}/out/client/debugger/vs/DjangoDebugger.js",
48+
"stopOnEntry": false,
49+
"args": [
50+
"--server=4711"
51+
],
52+
"sourceMaps": true,
53+
"outDir": "${workspaceRoot}/out/client"
54+
},
55+
{
56+
"name": "Attach to old vs debug server",
57+
"type": "node",
58+
"request": "launch",
59+
"runtimeArgs": [
60+
"--harmony"
61+
],
62+
"program": "${workspaceRoot}/out/client/debugger/vs/VSDebugger.js",
63+
"stopOnEntry": false,
64+
"args": [
65+
"--server=4711"
66+
],
67+
"sourceMaps": true,
68+
"outDir": "${workspaceRoot}/out/client"
3969
}
4070
]
4171
}

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Works on both Windows and Mac.
1717
## Issues and Feature Requests
1818
[Github Issues](https://github.com/DonJayamanne/pythonVSCode/issues)
1919
* Remote Debugging (coming soon)
20-
* Debugging django (in development)
2120

2221
## Feature Details (with confiuration)
2322
* IDE Features
@@ -99,6 +98,10 @@ Works on both Windows and Mac.
9998

10099
## Change Log
101100

101+
### Version 0.2.4
102+
* Introduced experimental debugging of django (debugging templates not supported)
103+
* Added support for optionally breaking into python code as soon as debugger starts
104+
102105
### Version 0.2.4
103106
* Fixed issue where debugger would break into all exceptions
104107
* Added support for breaking on all and uncaught exceptions

0 commit comments

Comments
 (0)