-
問題描述
VSCode沒法Debug,對應位置是灰色的,如下圖:
-
解決方案
-
First you need know what is the launch.json in VSCode:
The launch.json file is used to configure the debugger in Visual Studio Code. VSCode generates a launch.json with almost all of the required information. The generated file contains two sections, one that configures debugging for launch and a second that configures debugging for attach.
-
Second find what is launch and attach:
VSCode has built-in debugging support for the Node.js runtime and can debug any other language that gets transpiled to JavaScript.
The Python extension itself include debugging support.
Ctrl+Shift+D
進入debug界面。If running and debugging is not configured (no
launch.json
has been created), it show the Run start view like figure up.
-
-
References
VSCode Debug設置create a launch.json file
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.