Skip to content

Commit

Permalink
fix(cli): add VSCode Chrome Debugger to RequireJS/SystemJS
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Aug 29, 2017
1 parent a06a4f3 commit 3f4efd9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/commands/new/buildsystems/cli/editors/vscode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
)
);
}
Expand Down
19 changes: 19 additions & 0 deletions lib/resources/content/launch-cli.json
Original file line number Diff line number Diff line change
@@ -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.