vscode-gmrdb icon indicating copy to clipboard operation
vscode-gmrdb copied to clipboard

Launching Garry's Mod prevents extension from attaching

Open danielga opened this issue 4 years ago • 4 comments

If instead of launching, you attach to a previously started instance of Garry's Mod, everything works fine.

danielga avatar Aug 20 '21 17:08 danielga

Hi, I'm trying to get this working on a locally ran server to debug while I develop plugins, but so far whenever I attempt to attach to a running server the debugger simply stops. The same thing happens if I try to 'launch' srcds through the debugger instead. Do you have a Discord or anything I can contact you at for help with this? Getting desperate, debugging garry's mod is a nightmare. Thanks.

Rakaesa avatar May 12 '22 19:05 Rakaesa

@Rakaesa when you attach to the server, does the following appear? capture If so, you have to press the Continue button or press the F5 key to continue the normal execution of the server.

danielga avatar May 12 '22 20:05 danielga

Hello @danielga , thank you for the quick reply!

I had not added the rdb.lua to my server, so I just tried that. After doing so, it seems to freeze my server completely during launch. I'm using 32-bit SRCDS so I have the 32 bit dll in the 'includes' folder. I also tried with the 64-bit dll for good measure which didn't work either. Any ideas?

Rakaesa avatar May 13 '22 12:05 Rakaesa

it seems to freeze my server completely during launch

That's the module waiting for a debugger to attach, when you call rdb.activate.

danielga avatar May 21 '22 16:05 danielga