TL;DR Add "" justMyCode ": false" to the configuration of launch.json.
"justMyCode": false
There are many times when an open source library has too much scope for error messages to apply and you have to hit the source code yourself. GitHub has a jump function, and it is possible to manually follow the flow of the program on GitHub, but using the debug tool is overwhelmingly faster.
Open VSCode, open console with F1 (or Ctrl + Shift + R, click),
Debug: Open launch.json
Type to open launch.json. Add "justMyCode": false under configuration.
{
// 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",
"justMyCode": false #Add here
}
],
}
By the way, json cannot be commented out, so in reality, you should not write below #.
I also tried the GUI method first, but it didn't work. Maybe it's just python.
Let's enjoy the library made by the giant while checking the contents of variables by placing breakpoints as you like.
https://srbrnote.work/archives/4231
Recommended Posts