当前位置:网站首页>How to debug plug-ins using vs Code

How to debug plug-ins using vs Code

2022-06-26 07:57:00 Forge ahead and have a bright future

1、 Create startup file

2、 Add the configuration  , Then delete the original

launch.js 

{
    // 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": "Launch via NPM",
            "request": "launch",
            "runtimeArgs": [
                "run-script",
                "debug"
            ],
            "runtimeExecutable": "npm",//  adopt npm  Execute the script above :run-script 、 debug
            "skipFiles": [
                "<node_internals>/**"
            ],
            "type": "pwa-node"
        }
    ]
}

3、 Break points for code to debug

 

4、 Then you can run debugging

 

 

原网站

版权声明
本文为[Forge ahead and have a bright future]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202170607492592.html