日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程语言 > python >内容正文

python

vscode python单步调试_调试期间VSCode python“未验证断点”?

發(fā)布時(shí)間:2023/12/2 python 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 vscode python单步调试_调试期间VSCode python“未验证断点”? 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

我正在使用VSCode調(diào)試python應(yīng)用程序。在

我有一個(gè)主python文件,從這里啟動(dòng)調(diào)試器。我可以在這個(gè)文件中放置斷點(diǎn),但是如果我想在主文件調(diào)用的其他文件中放置斷點(diǎn),我會將它們作為“未驗(yàn)證的斷點(diǎn)”得到,調(diào)試器會忽略它們。在

如何更改我的launch.json以便能夠在項(xiàng)目中的所有文件上設(shè)置斷點(diǎn)?在

這是我當(dāng)前的launch.json:

{

// 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}"

},

{

"name": "Python: Attach",

"type": "python",

"request": "attach",

"localRoot": "${workspaceFolder}",

"remoteRoot": "${workspaceFolder}",

"port": 3000,

"secret": "my_secret",

"host": "localhost"

},

{

"name": "Python: Terminal (integrated)",

"type": "python",

"request": "launch",

"program": "${file}",

"console": "integratedTerminal"

},

{

"name": "Python: Terminal (external)",

"type": "python",

"request": "launch",

"program": "${file}",

"console": "externalTerminal"

},

{

"name": "Python: Django",

"type": "python",

"request": "launch",

"program": "${workspaceFolder}/manage.py",

"args": [

"runserver",

"--noreload",

"--nothreading"

],

"debugOptions": [

"RedirectOutput",

"Django"

]

},

{

"name": "Python: Flask (0.11.x or later)",

"type": "python",

"request": "launch",

"module": "flask",

"env": {

"FLASK_APP": "${workspaceFolder}/app.py"

},

"args": [

"run",

"--no-debugger",

"--no-reload"

]

},

{

"name": "Python: Module",

"type": "python",

"request": "launch",

"module": "nf.session.session"

},

{

"name": "Python: Pyramid",

"type": "python",

"request": "launch",

"args": [

"${workspaceFolder}/development.ini"

],

"debugOptions": [

"RedirectOutput",

"Pyramid"

]

},

{

"name": "Python: Watson",

"type": "python",

"request": "launch",

"program": "${workspaceFolder}/console.py",

"args": [

"dev",

"runserver",

"--noreload=True"

]

},

{

"name": "Python: All debug Options",

"type": "python",

"request": "launch",

"pythonPath": "${config:python.pythonPath}",

"program": "${file}",

"module": "module.name",

"env": {

"VAR1": "1",

"VAR2": "2"

},

"envFile": "${workspaceFolder}/.env",

"args": [

"arg1",

"arg2"

],

"debugOptions": [

"RedirectOutput"

]

}

]

}

總結(jié)

以上是生活随笔為你收集整理的vscode python单步调试_调试期间VSCode python“未验证断点”?的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。