forked from alibaba/AliOS-Things
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaunch.json
139 lines (139 loc) · 4.59 KB
/
launch.json
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug @ Mac/Linux",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/out/helloworld@starterkit/binary/[email protected]",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true,
"miDebuggerServerAddress": "localhost:4242",
"serverLaunchTimeout": 2000,
"targetArchitecture": "ARM",
"setupCommands": [
{
"text": "cd ${workspaceRoot}"
},
{
"text": "source .gdbinit"
},
{
"text": "target remote localhost:4242"
},
{
"text": "file out/helloworld@starterkit/binary/[email protected]"
},
{
"text": "break application_start"
}
],
"customLaunchSetupCommands": [],
"launchCompleteCommand": "exec-run",
"osx": {
"MIMode": "gdb",
"miDebuggerPath": "arm-none-eabi-gdb"
},
"linux": {
"MIMode": "gdb",
"miDebuggerPath": "arm-none-eabi-gdb"
},
"windows": {
"MIMode": "gdb",
"miDebuggerPath": "arm-none-eabi-gdb.exe"
}
},
{
"name": "Debug @ Windows",
"type": "cppdbg",
"request": "launch",
"program": "D:\\work\\AliOS-Things\\out\\helloworld@starterkit\\binary\\[email protected]",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true,
"miDebuggerServerAddress": "localhost:4242",
"serverLaunchTimeout": 2000,
"targetArchitecture": "ARM",
"setupCommands": [
{
"text": "cd ${workspaceRoot}"
},
{
"text": "source .gdbinit"
},
{
"text": "target remote localhost:4242"
},
{
"text": "file out/helloworld@starterkit/binary/[email protected]"
},
{
"text": "break application_start"
}
],
"customLaunchSetupCommands": [],
"launchCompleteCommand": "exec-run",
"osx": {
"MIMode": "gdb",
"miDebuggerPath": "arm-none-eabi-gdb"
},
"linux": {
"MIMode": "gdb",
"miDebuggerPath": "arm-none-eabi-gdb"
},
"windows": {
"MIMode": "gdb",
"miDebuggerPath": "arm-none-eabi-gdb.exe"
}
},
{
"name": "CSKY Debug @ Windows/Linux",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}\\out\\helloworld@cb2201\\binary\\[email protected]",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true,
"miDebuggerServerAddress": "localhost:8888",
"serverLaunchTimeout": 2000,
"targetArchitecture": "X86_64",
"setupCommands": [
{
"text": "cd ${workspaceRoot}"
},
{
"text": "source .gdbinit"
},
{
"text": "target jtag jtag://localhost:8888"
},
{
"text": "file out/helloworld@cb2201/binary/[email protected]"
},
{
"text": "set debug-in-rom"
},
{
"text": "hbreak application_start"
}
],
"customLaunchSetupCommands": [],
"launchCompleteCommand": "exec-run",
"linux": {
"MIMode": "gdb",
"miDebuggerPath": "csky-abiv2-elf-gdb"
},
"windows": {
"MIMode": "gdb",
"miDebuggerPath": "${workspaceRoot}\\build\\compiler\\gcc-csky-abiv2\\Win32\\bin\\csky-abiv2-elf-gdb.exe"
}
}
]
}