forked from MyDimeIsUp/gm_rdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch.example.json
More file actions
56 lines (56 loc) · 3.07 KB
/
launch.example.json
File metadata and controls
56 lines (56 loc) · 3.07 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
{
"configurations": [
{
// Name of the debugger
"type": "gmrdb",
// Type of debug (attach to running program)
"request": "attach",
// Name of the debug configuration
"name": "Attach to Garry's Mod",
// Automatically stop after launch (defaults to true)
"stopOnEntry": true,
// If debugging directly on a Garry's Mod server or client instance, "sourceRoot" pointing to Garry's Mod "garrysmod" directory should be enough
"sourceRoot": "{FULL PATH TO GARRY'S MOD CONTENT DIRECTORY}",
// Host to connect to (defaults to localhost), can be localhost (127.0.0.1) or any remote host
// Remote hosts require Garry's Mod / SRCDS to be started with -rdb_allow_remote
"host": "localhost",
// Port to connect to (defaults to 21111), in case you change it with rdb.activate(port_number)
"port": 21111,
// Mapping of local scripts directories to file paths reported by the debugger (defaults to empty map)
"sourceFileMap": {
// This is an example for a remote setup
// Local directory -> remote directory (as is announced by debug.getinfo)
"${workspaceFolder}": "addons/addon_name_here"
}
},
{
// Name of the debugger
"type": "gmrdb",
// Type of debug (launch program)
"request": "launch",
// Name of the debug configuration
"name": "Launch Garry's Mod",
// Automatically stop after launch (defaults to true)
"stopOnEntry": true,
// Full path to the executable to launch
"program": "{FULL PATH TO GARRY'S MOD EXECUTABLE}",
// Working directory for the program (defaults to program executable directory)
"cwd": "{DEFAULTS TO FULL PATH OF GARRY'S MOD EXECUTABLE DIRECTORY}",
// Array of arguments to pass to the program
// Add -rdb_allow_remote to accept non-loopback debugger connections
// Add -rdb_pause_on_activate to pause on the next hook event after rdb.activate(...)
// Optional: provide seconds after the flag (e.g. -rdb_pause_on_activate 120). 0 means infinite wait.
"args": [],
// If debugging directly on a Garry's Mod server or client instance, "sourceRoot" pointing to Garry's Mod "garrysmod" directory should be enough (defaults to working directory)
"sourceRoot": "{DEFAULTS TO WORKING DIRECTORY}",
// Port to connect to (defaults to 21111), in case you change it with rdb.activate(port_number)
"port": 21111,
// Mapping of local scripts directories to file paths reported by the debugger (defaults to empty map)
"sourceFileMap": {
// This is an example for a remote setup
// Local directory -> remote directory (as is announced by debug.getinfo)
"${workspaceFolder}": "addons/addon_name_here"
}
}
]
}