Permalink
Browse files

fix(cli): add VSCode Chrome Debugger to RequireJS/SystemJS

  • Loading branch information...
ghiscoding committed Aug 29, 2017
1 parent a06a4f3 commit 3f4efd9eadadc9190e609afc883e8bcb50b0e426
Showing with 22 additions and 1 deletion.
  1. +3 −1 lib/commands/new/buildsystems/cli/editors/vscode.js
  2. +19 −0 lib/resources/content/launch-cli.json
@@ -9,7 +9,9 @@ module.exports = function(project) {
} else {
project.addToContent(
ProjectItem.directory('.vscode').add(
ProjectItem.resource('settings.json', 'content/settings.json')
ProjectItem.resource('settings.json', 'content/settings.json'),
ProjectItem.resource('extensions.json', 'content/extensions.json'),
ProjectItem.resource('launch.json', 'content/launch-cli.json')
)
);
}
@@ -0,0 +1,19 @@
{
// Use IntelliSense to find out which attributes exist for node debugging
// Use hover for the description of the existing attributes
// For further information visit https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Chrome Debugger",
"type": "chrome",
"request": "launch",
"url": "http://localhost:9000",
"webRoot": "${workspaceRoot}/src",
"userDataDir": "${workspaceRoot}/.chrome",
"sourceMapPathOverrides": {
"../src/*": "${webRoot}/*"
}
}
]
}

0 comments on commit 3f4efd9

Please sign in to comment.