|
| 1 | +{ |
| 2 | + // To debug jupyterlab running in a venv or conda env: |
| 3 | + // - set up Python env in your workspace as per https://code.visualstudio.com/docs/python/environments |
| 4 | + // - add an "envFile" prop to each backend config pointing to .vscode/debug.env |
| 5 | + // - configure the .vscode/debug.env file as needed |
| 6 | + // https://github.com/jupyterlab/vscode-config-template/tree/main |
| 7 | + // https://github.com/jupyterlab/vscode-config-template/issues/1 |
| 8 | + "version": "0.2.0", |
| 9 | + "configurations": [ |
| 10 | + { |
| 11 | + "name": "Python Debugger: Current File all-code", |
| 12 | + "type": "debugpy", |
| 13 | + "request": "launch", |
| 14 | + "program": "${file}", |
| 15 | + "console": "integratedTerminal", |
| 16 | + "justMyCode": false |
| 17 | + }, |
| 18 | + { |
| 19 | + "name": "Python Debugger: Current File: just my code", |
| 20 | + "type": "debugpy", |
| 21 | + "request": "launch", |
| 22 | + "program": "${file}", |
| 23 | + "console": "integratedTerminal", |
| 24 | + "justMyCode": false |
| 25 | + }, |
| 26 | + { |
| 27 | + "name": "Ipylab", |
| 28 | + "type": "debugpy", |
| 29 | + "request": "launch", |
| 30 | + "args": [ |
| 31 | + "--notebook-dir=examples", |
| 32 | + "--no-browser", |
| 33 | + "--IdentityProvider.token=''", |
| 34 | + "--port=9990" |
| 35 | + ], |
| 36 | + "cwd": "${workspaceFolder}", |
| 37 | + "justMyCode": false, |
| 38 | + "module": "ipylab", |
| 39 | + "presentation": { |
| 40 | + "hidden": false |
| 41 | + } |
| 42 | + }, |
| 43 | + { |
| 44 | + "name": "IPylab frontend with Firefox", |
| 45 | + "type": "firefox", |
| 46 | + "request": "launch", |
| 47 | + "reAttach": true, |
| 48 | + "url": "http://localhost:9990", |
| 49 | + "webRoot": "${workspaceFolder}", |
| 50 | + "pathMappings": [ |
| 51 | + { |
| 52 | + "url": "webpack://ipylab/src", |
| 53 | + "path": "${workspaceFolder}/src" |
| 54 | + } |
| 55 | + ], |
| 56 | + "presentation": { |
| 57 | + "hidden": false |
| 58 | + } |
| 59 | + }, |
| 60 | + { |
| 61 | + "name": "IPylab frontend with Chrome", |
| 62 | + "type": "chrome", |
| 63 | + "request": "launch", |
| 64 | + "timeout": 180000, |
| 65 | + "url": "http://localhost:9990", |
| 66 | + // set webroot to the parent dir of your project's top level package.json |
| 67 | + "webRoot": "${workspaceFolder}", |
| 68 | + "pathMapping": { |
| 69 | + "url": "webpack://ipylab/src", |
| 70 | + "path": "${workspaceFolder}/src" |
| 71 | + }, |
| 72 | + "presentation": { |
| 73 | + "hidden": true |
| 74 | + } |
| 75 | + } |
| 76 | + ], |
| 77 | + "compounds": [ |
| 78 | + { |
| 79 | + "name": "Debug IPylab with Firefox", |
| 80 | + "configurations": ["Ipylab", "IPylab frontend with Firefox"] |
| 81 | + }, |
| 82 | + { |
| 83 | + "name": "Debug Ipylab with Chrome", |
| 84 | + "configurations": ["Ipylab", "IPylab frontend with Chrome"] |
| 85 | + } |
| 86 | + ] |
| 87 | +} |
0 commit comments