I have a simplistic PowerShell script-based build process where I copy some Python source files in /src over to a /build folder, along with some data files and assets stored in other external subfolders. I want to run the VS Code Debugger against this build folder (full path: /build/demo/quad/quad.py), but mark my breakpoints against the files in /src (equivalent file found in /src/python/quad.py).
I have tried various attempts to get VS code to recognise this and ChatGPT has indicated it as similar to a JavaScript source map (I am not a web developer) but have had no joy so far. Is this possible?
Relevant snippet of my VS Code workspace file:
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "QUAD Debugger",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/build/demo/quad/quad.py",
"console": "integratedTerminal",
"cwd": "${workspaceFolder}/build/demo/quad",
"justMyCode": false,
"presentation": {
"reveal": "always",
"panel": "shared",
"close": true
},
"env": {
"PYTHONPATH": ${workspaceFolder}/src/python${pathSeparator}${env:PYTHONPATH}"}
},
Ryan Matfen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.