You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The loader script ensures `gm_rdb` only loads on the server realm and starts automatically when the server loads.
189
+
This script is copy-pasted from version 1.0.6 and may be outdated if you are using a newer version of the extension. It is always recommended to use the setup wizard for the latest version of the loader script.
53
190
</Note>
54
191
55
192
---
@@ -65,46 +202,49 @@ Use **attach** when the server is already running (most common for development):
The reason for it looking so complicated is due to it trying to be a generic example that will work for everyone - you can also use hardcoded direct paths if you want, but this means others won't be able to use your config without editing it.
243
+
244
+
245
+
### Launch a server
246
+
247
+
<Warning>The `launch` option is unsupported and may not work on all systems. Use `attach` instead.</Warning>
108
248
109
249
---
110
250
@@ -115,7 +255,7 @@ Use **launch** to start SRCDS directly from VS Code:
115
255
3. Select your launch configuration from the dropdown
116
256
4. Press **F5** (or click the green play button)
117
257
118
-
The debug toolbar appears at the top of the screen when connected.
258
+
The debug toolbar appears at the top of the screen when connected. You should see the debug console output pop up in the bottom panel.
119
259
120
260
---
121
261
@@ -135,6 +275,8 @@ The debug toolbar appears at the top of the screen when connected.
135
275
136
276
### Launch configuration (server process)
137
277
278
+
<Warning>The `launch` option is unsupported and may not work on all systems. Use `attach` instead.</Warning>
279
+
138
280
Includes the above, plus:
139
281
140
282
| Property | Type | Description |
@@ -147,14 +289,10 @@ Includes the above, plus:
147
289
148
290
## Changing the default port
149
291
150
-
You can configure `gm_rdb` to listen on a different port by adding a `CreateConVar` in your loader:
151
-
152
-
```lua garrysmod/autorun/rdb_loader.lua
153
-
ifnotSERVERthenreturnend
292
+
You can configure `gm_rdb` to listen on a different port by changing the following line within `debug.lua`:
154
293
155
-
-- Change default port to 21200
156
-
CreateConVar("rdb_port", "21200", FCVAR_NONE, "Debug port for gm_rdb")
157
-
require("rdb")
294
+
```lua garrysmod/autorun/debug.lua
295
+
rdb.activate(<PORT_NUMBER>)
158
296
```
159
297
160
298
Make sure to update `"port"` in your `launch.json` to match.
0 commit comments