函数无法跳转
运行代码后发现代码的跳转功能无法使用,排查后发现是要安装python extension。安装后正常
带参数的vscode debug
vscode设置debug,并指定conda环境_vscode调试指定conda-CSDN博客
跳转 run and debug界面,设置对应的launch.json文件
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: train",//launch debug的名字
"type": "python",//默认
"request": "launch",//默认
"program": "/data1/yth/2d-gaussian-splatting/render.py",//需要调试的代码的路径
"args": [
"-m","/data1/yth/2d-gaussian-splatting/output/date/scan105",
"-s","/data1/yth/2d-gaussian-splatting/data/DTU/scan105"
],//如果有需要调试的代码有参数写咋这里,注意参数之间用,隔开(-m, ...)
"console": "integratedTerminal",//默认
"pythonPath":"/home/yetianhao/anaconda3/envs/surfel_splatting/bin/python"//指定使用的conda环境,具体python解释器路径地址
//可以先activate 对应的环境然后使用which python得到
}
]
}