1
+ {
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
+ "name" : " Launch Program (Node 6+)" ,
11
+ "program" : " ${workspaceRoot}/lib/nativescript-cli.js" ,
12
+ "cwd" : " ${workspaceRoot}" ,
13
+ "sourceMaps" : true ,
14
+ // define the arguments that you would like to pass to CLI, for example
15
+ // "args": [ "build", "android", "--justlaunch" ]
16
+ "args" : [
17
+
18
+ ]
19
+ },
20
+
21
+ {
22
+ // in case you want to debug a single test, modify it's code to be `it.only(...` instead of `it(...`
23
+ "type" : " node" ,
24
+ "request" : " launch" ,
25
+ "name" : " Launch Tests (Node 6+)" ,
26
+ "program" : " ${workspaceRoot}/node_modules/mocha/bin/_mocha" ,
27
+ "cwd" : " ${workspaceRoot}" ,
28
+ "sourceMaps" : true
29
+ },
30
+
31
+ {
32
+ "type" : " node" ,
33
+ "runtimeArgs" : [
34
+ " --harmony"
35
+ ],
36
+ "request" : " launch" ,
37
+ "name" : " Launch Program (Node 4, Node 5)" ,
38
+ "program" : " ${workspaceRoot}/lib/nativescript-cli.js" ,
39
+ "cwd" : " ${workspaceRoot}" ,
40
+ "sourceMaps" : true ,
41
+ // define the arguments that you would like to pass to CLI, for example
42
+ // "args": [ "build", "android", "--justlaunch" ]
43
+ "args" : [
44
+
45
+ ]
46
+ },
47
+
48
+ {
49
+ // in case you want to debug a single test, modify it's code to be `it.only(...` instead of `it(...`
50
+ "type" : " node" ,
51
+ "runtimeArgs" : [
52
+ " --harmony"
53
+ ],
54
+ "request" : " launch" ,
55
+ "name" : " Launch Tests (Node 4, Node 5)" ,
56
+ "program" : " ${workspaceRoot}/node_modules/mocha/bin/_mocha" ,
57
+ "cwd" : " ${workspaceRoot}" ,
58
+ "sourceMaps" : true
59
+ },
60
+
61
+ {
62
+ "type" : " node" ,
63
+ "request" : " attach" ,
64
+ "name" : " Attach to Process" ,
65
+ "port" : 5858 ,
66
+ "sourceMaps" : true
67
+ }
68
+
69
+ ]
70
+ }
0 commit comments