2023년 8월 6일 일요일

How to debug python source code with streamlit library in vscode

 in launch.json

"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"module": "streamlit",
"console": "integratedTerminal",
"justMyCode": true,
"cwd": "${fileDirname}",
"env": {"PYTHONPATH": "${workspaceFolder}${pathSeparator}${env:PYTHONPATH}"},
"args": [
"run",
"${file}",
"--server.fileWatcherType",
"none"
]
},
]