Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Add vscode config for debugging packaged builds
Browse files Browse the repository at this point in the history
Auditors: @aekeus
  • Loading branch information
bbondy committed Sep 26, 2016
1 parent 1499d9d commit 34e6659
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,34 @@
// If JavaScript source maps are enabled, the generated code is expected in this directory.
"outDir": null
},
{
// Name of configuration; appears in the launch configuration drop down menu.
"name": "Launch macOS packaged",
// Type of configuration.
"type": "node",
// Workspace relative or absolute path to the program.
"program": "${workspaceRoot}/Brave-darwin-x64/Brave.app/Contents/Resources/app.asar/app/index.js",
// Automatically stop program after launch.
"stopOnEntry": false,
// Command line arguments passed to the program.
"args": [".", "-enable-logging", "--v=0", "--enable-dcheck"],
// Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.
"cwd": "${workspaceRoot}",
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
"runtimeExecutable": "${workspaceRoot}/Brave-darwin-x64/Brave.app/Contents/MacOS/Brave",
// Optional arguments passed to the runtime executable.
"runtimeArgs": [],
// Environment variables passed to the program.
"env": {
"NODE_ENV": "production",
"npm_package_config_port": 8080
},
// Use JavaScript source maps (if they exist).
"sourceMaps": true,
"port": 5858,
// If JavaScript source maps are enabled, the generated code is expected in this directory.
"outDir": null
},
{
"name": "Attach",
"type": "node",
Expand Down

1 comment on commit 34e6659

@aekeus
Copy link
Member

@aekeus aekeus commented on 34e6659 Sep 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

Please sign in to comment.