Debugger for Chrome 中断点位置不对怎么调整?

image.png
image.png
配置文件如图所示断点位置都不对应怎么调整?:
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": \[

        {

"type": "chrome",

"request": "launch",

"name": "Launch Chrome",

"url": "http://localhost:8080",

"webRoot": "${workspaceFolder}/src",

"breakOnLoad":true,

"sourceMapPathOverrides": {

"webpack:///./src/\*": "${webRoot}/\*"

            }

        }

    \]

}

vue.config.js 中配置如下

module.exports\= {

    configureWebpack: {

      devtool: 'source-map'

    }

}
阅读 4.8k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进