Python VSCode金字塔调试
我正在努力在Linux机器上配置开始调试金字塔应用程序(通过pserve),但没有成功Python VSCode金字塔调试,python,debugging,visual-studio-code,pyramid,Python,Debugging,Visual Studio Code,Pyramid,我正在努力在Linux机器上配置开始调试金字塔应用程序(通过pserve),但没有成功 任何指导都将不胜感激。我成功地使用Linux下的程序选项,使用VS codelaunch.json文件调试了我的金字塔应用程序: { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information
任何指导都将不胜感激。我成功地使用Linux下的
程序选项,使用VS codelaunch.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: Pyramid Application",
"type": "python",
"request": "launch",
"program": "FullPathToExecutableFileHere",
"args": [
"param1",
"${workspaceFolder}/XXX.ini"
],
"pyramid": true,
"jinja": true
}
]
}
提供可执行文件的完整路径,并在args
部分提供参数
我现在可以在任何python源文件代码中设置断点
不要忘记使用CTRL
+Shift
+p
将python解释器的路径设置为应用程序所需的特定python虚拟环境?你观察到了什么?报告了哪些错误?此处相同,找不到单个扩展名或解决方法。已找到,但这导致ValueError:源代码无法控制空字节。我在尝试创建lauch.json
文件时遇到了相同的问题。我遇到了此错误E+00000.007:确定sys.argv的模块路径时出错