-
-
Notifications
You must be signed in to change notification settings - Fork 201
Expand file tree
/
Copy pathlaunch.json
More file actions
89 lines (82 loc) · 2.98 KB
/
launch.json
File metadata and controls
89 lines (82 loc) · 2.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
// Use IntelliSense to learn about possible Node.js debug attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"sourceMaps": true,
"name": "Launch CLI (Node 6+)",
"program": "${workspaceRoot}/lib/nativescript-cli.js",
// example commands
"args": [ "create", "cliapp"]
// "args": [ "platform", "add", "android@1.3.0", "--path", "cliapp"]
// "args": [ "platform", "remove", "android", "--path", "cliapp"]
// "args": [ "plugin", "add", "nativescript-barcodescanner", "--path", "cliapp"]
// "args": [ "plugin", "remove", "nativescript-barcodescanner", "--path", "cliapp"]
// "args": [ "build", "android", "--path", "cliapp"]
// "args": [ "run", "android", "--path", "cliapp"]
// "args": [ "debug", "android", "--path", "cliapp"]
// "args": [ "livesync", "android", "--path", "cliapp"]
// "args": [ "livesync", "android", "--watch", "--path", "cliapp"],
// "args": [ "resources", "generate", "icons", "./test/image-generation-test.png", "--path", "cliapp" ],
// "args": [ "resources", "generate", "splashes", "./test/image-generation-test.png", "--path", "cliapp", "--background", "#8000ff" ],
},
{
// in case you want to debug a single test, modify it's code to be `it.only(...` instead of `it(...`
"type": "node",
"request": "launch",
"name": "Launch Tests (Node 6+)",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"cwd": "${workspaceRoot}",
"sourceMaps": true
},
{
"type": "node",
"runtimeArgs": [
"--harmony"
],
"request": "launch",
"name": "Launch CLI (Node 4, Node 5)",
"program": "${workspaceRoot}/lib/nativescript-cli.js",
"cwd": "${workspaceRoot}",
"sourceMaps": true,
// define the arguments that you would like to pass to CLI, for example
// "args": [ "build", "android", "--justlaunch" ]
"args": [
]
},
{
// in case you want to debug a single test, modify it's code to be `it.only(...` instead of `it(...`
"type": "node",
"runtimeArgs": [
"--harmony"
],
"request": "launch",
"name": "Launch Tests (Node 4, Node 5)",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"cwd": "${workspaceRoot}",
"sourceMaps": true
},
{
"type": "node",
"request": "attach",
"name": "Attach to Broker Process",
// In case you want to debug Analytics Broker process, add `--debug-brk=9897` (or --inspect-brk=9897) when spawning analytics-broker-process.
"port": 9897,
"sourceMaps": true
},
{
"type": "node",
"request": "attach",
"name": "Attach to Eqatec Process",
// In case you want to debug Eqatec Analytics process, add `--debug-brk=9855` (or --inspect-brk=9855) when spawning eqatec-analytics-process.
// NOTE: Ensure you set it only for one of the analytics processes.
"port": 9855,
"sourceMaps": true
}
]
}