-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathlaunch.json
More file actions
50 lines (50 loc) · 1.49 KB
/
launch.json
File metadata and controls
50 lines (50 loc) · 1.49 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
{
"version": "0.2.0",
"configurations": [
// Debugging JS files
{
"type": "node",
"request": "launch",
"name": "Run single test",
"program": "${workspaceFolder}/${relativeFile}",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "${workspaceFolder}/node",
"skipFiles": [
// VSCode excludes node internals by default. Uncomment this to include them.
// "<node_internals>/**"
]
},
// Debugging C++ files
{
"name": "node (debug)",
"type": "cppdbg", // "cppdbg" for GDB/LLDB, "cppvsdbg" for Windows Visual Studio debugger
"request": "launch",
"program": "${workspaceFolder}/out/Debug/node",
"args": [], // Optional command line args
"preLaunchTask": "make debug",
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
// GDB
"setupCommands": [
{
"description": "Enable pretty printing for gdb",
"text": "-enable-pretty-printing"
},
{
"description": "Load v8 gdb configuration",
"text": "-interpreter-exec console \"source -v ${workspaceFolder}/deps/v8/tools/gdbinit\""
},
],
// LLDB
"MIMode": "lldb",
"setupCommands": [
{
"description": "Load v8 lldb configuration",
"text": "-interpreter-exec mi \"command script import ${workspaceFolder}/deps/v8/tools/lldb_commands.py\""
},
],
},
]
}