Line 227: |
Line 227: |
| Admin Tasks | | Admin Tasks |
| | | |
| + | ====How do I set up VSC to use the debugger?==== |
| + | The zynthian has specific setup elements that allow the system to run properly these are outlined in a file called launch.json which VSC generates in a directory all .vscode |
| + | |
| + | This is what you should probably load in there instead of the default. |
| + | |
| + | { |
| + | // Use IntelliSense to learn about possible attributes. |
| + | // Hover to view descriptions of existing attributes. |
| + | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
| + | "version": "0.2.0", |
| + | "configurations": [ |
| + | { |
| + | "name": "Zynthian", |
| + | "type": "debugpy", |
| + | "request": "launch", |
| + | "program": "zynthian_main.py", |
| + | "python": "/zynthian/venv/bin/python3", |
| + | "console": "integratedTerminal", |
| + | "justMyCode": true, |
| + | "env": { |
| + | "DISPLAY": ":0" |
| + | } |
| + | }, |
| + | { |
| + | "name": "Zynthian Debug", |
| + | "type": "debugpy", |
| + | "request": "launch", |
| + | "program": "zynthian_main.py", |
| + | "python": "/zynthian/venv/bin/python3", |
| + | "console": "integratedTerminal", |
| + | "justMyCode": true, |
| + | "subProcess": true, |
| + | "env": { |
| + | "DISPLAY": ":0", |
| + | "ZYNTHIAN_LOG_LEVEL": "10" |
| + | } |
| + | } |
| + | ] |
| + | } |
| | | |
| <br clear=all> | | <br clear=all> |