Let's assume you want to debug fsdl-text-recognizer-2021-labs/lab1/training/run_experiment.py for lab1 in VSCode - in other words, debug the current Python file.
You need to create launch.json file for making code debuggable in VSCode.
Then you need to append a single line to your launch.json file :
{
// 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": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"env": { "PYTHONPATH": "${workspaceRoot}/lab1"}
}
]
}
Let's assume you want to debug
fsdl-text-recognizer-2021-labs/lab1/training/run_experiment.py
forlab1
in VSCode - in other words, debug the current Python file. You need to createlaunch.json
file for making code debuggable in VSCode. Then you need to append a single line to yourlaunch.json
file :