11{
2- // Use IntelliSense to learn about possible Node.js debug attributes.
3- // Hover to view descriptions of existing attributes.
4- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5- "version" : " 0.2.0" ,
6- "configurations" : [
7- {
8- "type" : " node" ,
9- "request" : " launch" ,
10- "cwd" : " ${workspaceRoot}" ,
11- "sourceMaps" : true ,
12- // In case you want to debug child processes started from CLI:
13- // "autoAttachChildProcesses": true,
14- "name" : " Launch CLI (Node 6+)" ,
15- "program" : " ${workspaceRoot}/lib/nativescript-cli.js" ,
16-
17- // example commands
18- "args" : [ " create" , " cliapp" , " --path" , " ${workspaceRoot}/scratch" ]
19- // "args": [ "test", "android", "--justlaunch"]
20- // "args": [ "platform", "add", "android@1.3.0", "--path", "cliapp"]
21- // "args": [ "platform", "remove", "android", "--path", "cliapp"]
22- // "args": [ "plugin", "add", "nativescript-barcodescanner", "--path", "cliapp"]
23- // "args": [ "plugin", "remove", "nativescript-barcodescanner", "--path", "cliapp"]
24- // "args": [ "build", "android", "--path", "cliapp"]
25- // "args": [ "run", "android", "--path", "cliapp"]
26- // "args": [ "debug", "android", "--path", "cliapp"]
27- // "args": [ "livesync", "android", "--path", "cliapp"]
28- // "args": [ "livesync", "android", "--watch", "--path", "cliapp"],
29- // "args": [ "resources", "generate", "icons", "./test/image-generation-test.png", "--path", "cliapp" ],
30- // "args": [ "resources", "generate", "splashes", "./test/image-generation-test.png", "--path", "cliapp", "--background", "#8000ff" ],
31- },
32- {
33- // in case you want to debug a single test, modify it's code to be `it.only(...` instead of `it(...`
34- "type" : " node" ,
35- "request" : " launch" ,
36- "name" : " Launch Tests (Node 6+)" ,
37- "program" : " ${workspaceRoot}/node_modules/mocha/bin/_mocha" ,
38- "cwd" : " ${workspaceRoot}" ,
39- "sourceMaps" : true
40- },
41-
42- {
43- "type" : " node" ,
44- "request" : " attach" ,
45- "name" : " Attach to Broker Process" ,
46- // In case you want to debug Analytics Broker process, add `--debug-brk=9897` (or --inspect-brk=9897) when spawning analytics-broker-process.
47- "port" : 9897 ,
48- "sourceMaps" : true
49- }
50-
51- ]
52- }
2+ // Use IntelliSense to learn about possible Node.js debug attributes.
3+ // Hover to view descriptions of existing attributes.
4+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+ "version" : " 0.2.0" ,
6+ "configurations" : [
7+ {
8+ "type" : " node" ,
9+ "request" : " launch" ,
10+ "cwd" : " ${workspaceRoot}" ,
11+ "sourceMaps" : true ,
12+ // In case you want to debug child processes started from CLI:
13+ // "autoAttachChildProcesses": true,
14+ "name" : " Launch CLI (Node 6+)" ,
15+ "program" : " ${workspaceRoot}/lib/nativescript-cli.js" ,
16+ // example commands
17+ "args" : [
18+ " create" ,
19+ " cliapp" ,
20+ " --path" ,
21+ " ${workspaceRoot}/scratch"
22+ ]
23+ // "args": [ "test", "android", "--justlaunch"]
24+ // "args": [ "platform", "add", "android@1.3.0", "--path", "cliapp"]
25+ // "args": [ "platform", "remove", "android", "--path", "cliapp"]
26+ // "args": [ "plugin", "add", "nativescript-barcodescanner", "--path", "cliapp"]
27+ // "args": [ "plugin", "remove", "nativescript-barcodescanner", "--path", "cliapp"]
28+ // "args": [ "build", "android", "--path", "cliapp"]
29+ // "args": [ "run", "android", "--path", "cliapp"]
30+ // "args": [ "debug", "android", "--path", "cliapp"]
31+ // "args": [ "livesync", "android", "--path", "cliapp"]
32+ // "args": [ "livesync", "android", "--watch", "--path", "cliapp"],
33+ // "args": [ "resources", "generate", "icons", "./test/image-generation-test.png", "--path", "cliapp" ],
34+ // "args": [ "resources", "generate", "splashes", "./test/image-generation-test.png", "--path", "cliapp", "--background", "#8000ff" ],
35+ },
36+ {
37+ // in case you want to debug a single test, modify it's code to be `it.only(...` instead of `it(...`
38+ "type" : " node" ,
39+ "request" : " launch" ,
40+ "name" : " Launch Tests (Node 6+)" ,
41+ "program" : " ${workspaceRoot}/node_modules/mocha/bin/_mocha" ,
42+ "cwd" : " ${workspaceRoot}" ,
43+ "sourceMaps" : true
44+ },
45+ {
46+ "type" : " node" ,
47+ "request" : " attach" ,
48+ "name" : " Attach to Broker Process" ,
49+ // In case you want to debug Analytics Broker process, add `--debug-brk=9897` (or --inspect-brk=9897) when spawning analytics-broker-process.
50+ "port" : 9897 ,
51+ "sourceMaps" : true
52+ },
53+ {
54+ "name" : " Attach to Node Debugger" ,
55+ "port" : 9229 ,
56+ "request" : " attach" ,
57+ "skipFiles" : [
58+ " <node_internals>/**"
59+ ],
60+ "type" : " pwa-node"
61+ }
62+ ]
63+ }
0 commit comments