赞
踩
Launch Chrome against localhost,在 launch.json里添加如下配置,注意 "trace": true 可以帮助生成log文件。
- {
- "type": "chrome",
- "request": "launch",
- "name": "Launch Chrome against localhost",
- "url": "http://localhost:4200",
- "webRoot": "${workspaceFolder}",
- "trace": true
- }
- {
- "type": "chrome",
- "request": "attach",
- "name": "Attach Chrome against localhost",
- "port": 9222,
- "webRoot": "${workspaceFolder}",
- "trace": true
- }
3. debug 时选择 对应attach的配置:如下
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。