Debugging tools for the VS Code compiler

1 The use of debbugeer for chrome

Download and install, then configure launch.json

{
                "name": "Chrome",//名称
                "type": "chrome",
                "request": "launch",
                "sourceMaps": false,//Do not configure the server, use the file protocol
                "file": "${file}" //Environment variables to start this page
            }

  Then you can set breakpoints (ps: it seems that it can only be set in the external js)

2 Configure the node service

  

            {
                "type": "node",
                "request": "launch",
                "name": "node Program",
                "program": "${file}"
            }

  There are other useful plugins welcome to recommend~

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325086360&siteId=291194637