Debugging React的VStudioCode调试无法启动
我的项目有以下Debugging React的VStudioCode调试无法启动,debugging,visual-studio-code,Debugging,Visual Studio Code,我的项目有以下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": &q
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": "Attach to Chrome",
"request": "launch",
"url": "http://localhost:3000",
"type": "chrome",
"webRoot": "${workspaceFolder}"
},
{
"name": "Python: Django",
"type": "python",
"request": "launch",
"python": "/Users/hugovillalobos/Documents/Code/TCDigitalProject/TCDigitalBackend/TCDigitalVenv/bin/python",
"program": "${workspaceFolder}/TCDigitalBackend/TCDigital/manage.py",
"args": [
"runserver",
"--noreload"
],
//"args": ["create_init_data"],
"django": true
}
]
}
Python Django的调试工作非常出色,但Attach to Chrome的调试失败,出现以下错误:
我还注意到,我的调试配置列表中有两个条目用于附加到Chrome
(一个用项目名称进行了后期固定),但当我选择了后期固定的条目时,它会自动更改为另一个:
当我对launch.json进行任何更改时,也会出现此错误:
The mypy daemon executable ('dmypy') was not found on your PATH. Please install mypy or adjust the mypy.dmypyExecutable setting.
这是我的项目的主目录树:
{
// 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": "Attach to Chrome",
"request": "launch",
"url": "http://localhost:3000",
"type": "chrome",
"webRoot": "${workspaceFolder}"
},
{
"name": "Python: Django",
"type": "python",
"request": "launch",
"python": "/Users/hugovillalobos/Documents/Code/TCDigitalProject/TCDigitalBackend/TCDigitalVenv/bin/python",
"program": "${workspaceFolder}/TCDigitalBackend/TCDigital/manage.py",
"args": [
"runserver",
"--noreload"
],
//"args": ["create_init_data"],
"django": true
}
]
}
我不知道怎么解决这个问题