Welcome, Guest! Login | Register

Debugging in Visual Studio 6 [Print this Article]
Posted by: omega
Date posted: Apr 26 2003
User Rating: 5 out of 5.0
Number of views: 4116
Number of comments: 1
Description:
Debugging in VC6

This article was originally written by pink.
While porting it to the new site i decided to make some new pictures; and mention a few extra things.


Open your HL SDK Workspace. (For me, with Defiance both the server and the client are in the same workspace; this makes editing and debugging a -LOT- easier, because i can switch between either dll whenever i need to, without needing to have two instances of VC loaded.)

Go to Build - Set Active Configuration
user posted image

Set the Active Configuration to either server (hl) Debug or Client (cl_dlls) Debug, depending on which you wish to debug; and assuming you have both dlls in the project as I do. (If you only have one dll in the project, choose it!)
user posted image

Hit ALT-F7 to go to your Project Settings
user posted image

Go to the Debug Tab, now:
user posted image

Where it says "Executable for debug session" point it to your hl.exe
Where it says "Working Directory" set it to you Half-Life directory
Where it says "Program Arguments" set your command line parameters there. I use:
-console -game flf2 +maxplayers 6 +sv_lan 1 -w 800 -notopmost -dev -sw +map omega
NOTES: -sw runs HL in a window, so if you got a old Voodoo based card, the only way you can run it in a window is by running software mode
-notopmost keeps (should) hl from staying ontop if it breaks out, or crashes.

Now on the Category drop down list, change it to Additional Dlls
user posted image

Add both your server and client dll, and make sure both are compiled in debug mode; this will save a LOT of hastles, especially when you're not sure if its the engine, or one of the dlls thats not functioning correctly!

Hit Ok

And now just hit F5 to beging your debug session

Rate This Article
This article is currently rated: 5 out of 5.0 (3 Votes)

You have to register to rate this article.
User Comments Showing comments 1-1

Posted By: Unknown on Nov 12 2007 at 12:11:14
I kow this is not good place for troubleshooting but i get error mesage
http://i216.photobucket.com/albums/cc15/Lo...erRU/error1.jpg
and when i click ok
http://i216.photobucket.com/albums/cc15/Lo...erRU/error2.jpg
I m a noob to coding and i realy wanna learn something!!!
+i did everything exactly like u sad in tutorial!Edited by Unknown on Nov 12 2007, 12:14:51


You must register to post a comment. If you have already registered, you must login.

Latest Articles
3rd person View in Multiplayer
Half-Life 2 | Coding | Client Side Tutorials
How to enable it in HL2DM

By: cct | Nov 13 2006

Making a Camera
Half-Life 2 | Level Design
This camera is good for when you join a map, it gives you a view of the map before you join a team

By: slackiller | Mar 04 2006

Making a camera , Part 2
Half-Life 2 | Level Design
these cameras are working monitors that turn on when a button is pushed.

By: slackiller | Mar 04 2006

Storing weapons on ladder
Half-Life 2 | Coding | Snippets
like Raven Sheild or BF2

By: British_Bomber | Dec 24 2005

Implementation of a string lookup table
Half-Life 2 | Coding | Snippets
A string lookup table is a set of functions that is used to convert strings to pre-defined values

By: deathz0rz | Nov 13 2005


Latest Comments
Spinning Corpses Simple Fix
Half-Life | Coding | Snippets
By: darkPhoenix | Sep 05 2008
 
Where do we go from here
General | News
By: MIFUNE | Jun 09 2008
 
The Input/Output system
Half-Life 2 | Level Design
By: nazitaco | Dec 23 2007
 
Where do we go from here
General | News
By: Rob_F | Nov 22 2007
 
Rescaling Half-Life
Half-Life | Coding | Shared Tutorials
By: christoph | Nov 12 2007
 
GameUI
Half-Life 2 | Coding | Client Side Tutorials
By: Evil_j | Oct 29 2007
 
3 State Zoom For Any Weapon
Half-Life 2 | Coding | Server Side Tutorials
By: Ennuified | Oct 18 2007
 
Storing weapons on ladder
Half-Life 2 | Coding | Snippets
By: cct | Sep 07 2007
 
CTF Gameplay Part 1
Half-Life | Coding | Shared Tutorials
By: DarkNight | Aug 28 2007
 
CTF Gameplay Part 1
Half-Life | Coding | Shared Tutorials
By: deedok | Aug 20 2007
 

Site Info
296 Approved Articless
5 Pending Articles
3940 Registered Members
3 People Online (59 guests)
About - Credits - Contact Us

Wavelength version: 3.0.0.9
Valid XHTML 1.0! Valid CSS!