VSCode Debug設置create a launch.json file

  • 問題描述

    VSCode沒法Debug,對應位置是灰色的,如下圖:

    在這裏插入圖片描述

  • 解決方案

    1. 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.

    2. Second find what is launch and attach:
      • launch 啓動程序並進行調試
      • 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

  1. VSCode debugging
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章