Raised This Month: $32 Target: $400
 8% 

Debugging server plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
teknogrebo
Junior Member
Join Date: Jan 2005
Old 01-27-2005 , 04:28   Debugging server plugins
Reply With Quote #1

Hi,

This is probably a noob question that is covered somewhere on the net, but having spent yesterday afternoon looking for the answer and not being able to find what I'm after, I thought I'ld ask here.

I've been a software developer for 5 years now, so I know all about Dev |Studio, and how to debug applications normally, but I can't for the life of me work out how you are supposed to debug a server plugin .dll. If anyone can give me a few pointers as to how to do this then that would be great.

TIA,

Tom
teknogrebo is offline
Manip
Senior Member
Join Date: Jan 2004
Old 01-27-2005 , 04:51  
Reply With Quote #2

It is exactly the same as debugging any other application.

... Have the linker dump the debug build in the correct folder (e.g. C:\HLSServer\bin), have the debugger setup to launch the server binary (e.g. srcds.exe), set the working folder to the server root (e.g. C:\HLSServer) and also append '-allowdebug' to the args list... Then hit 'Play' and you're all set.
Manip is offline
Send a message via AIM to Manip
teknogrebo
Junior Member
Join Date: Jan 2005
Old 01-27-2005 , 05:48  
Reply With Quote #3

Brilliant. Thanks for that. I'm not used to debugging dll's and didn't realise about the allowdebug, but that worked a treat.

Thanks again.
teknogrebo is offline
BAILOPAN
Join Date: Jan 2004
Old 01-27-2005 , 09:03  
Reply With Quote #4

Note that (for me), srcds will dump core dumps for release builds. You can then open those with visual studio's debugger.
__________________
egg
BAILOPAN is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode