From 34e66597b3dd713541ef1d1666f20c6131164a50 Mon Sep 17 00:00:00 2001 From: "Brian R. Bondy" Date: Mon, 26 Sep 2016 16:40:13 -0400 Subject: [PATCH] Add vscode config for debugging packaged builds Auditors: @aekeus --- .vscode/launch.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index de2610c66ec..5d16c0e61d1 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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",