dvajs / dva-cli

The dva command line utility.
964 stars 156 forks source link

怎样使用 VSCode 进行 debug ? #137

Closed ycjcl868 closed 6 years ago

ycjcl868 commented 6 years ago

已经安装了 Debugger for Chrome

// launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "chrome",
      "request": "launch",
      "name": "Chrome",
      "url": "http://localhost:8000",
      "webRoot": "${workspaceRoot}/src",
    }
  ]
}

打断点的时候,编辑器提示 由于未找到生成的代码,已忽略断点(是否是源映射问题?)。
项目目录结构:

.
├── README.md
├── dist
├── mock
├── node_modules
├── package.json
├── public
├── run
├── src
  ├── admin_router.js
  ├── assets
  ├── components
  ├── data
  ├── index_router.js
  ├── locales
  ├── models
  ├── pages
  ├── reset.css
  ├── routes
  ├── services
  ├── utils
  └── variable.less
xvusrmqj commented 4 years ago

closed directly?