-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlaunch.json
55 lines (55 loc) · 2.06 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
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch cltester",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/clsdk/bin/cltester",
"args": [
"-v",
"-s",
"depositspend.wasm",
"depositspend-debug.wasm",
"-s",
"clsdk/contracts/token.wasm",
"clsdk/contracts/token-debug.wasm",
"test-depositspend.wasm"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"environment": [],
"externalConsole": false,
// Q: Why don't we use "sourceFileMap" here?
// A: It appears to work at first, but then things fall apart when
// you set breakpoints in some of the mapped files.
// "set substitute-path" (below) works better.
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Ignore timer signal",
"text": "handle SIG34 noprint",
"ignoreFailures": false
},
{
"description": "Map sources",
"text": "set substitute-path clsdk-wasi-sdk: ${workspaceFolder}/build/wasi-sdk",
"ignoreFailures": false
},
{
"description": "Map sources",
"text": "set substitute-path clsdk: ${workspaceFolder}/build/clsdk",
"ignoreFailures": false
}
]
}
]
}