Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/sites/a/ on line 20
Wavelength | Your Game Editing Resource | Debugging in Visual Studio 6
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: 6533
Number of comments: 1
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 18:11:14
I kow this is not good place for troubleshooting but i get error mesage
and when i click ok
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, 18: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 05 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
knock knock
General | News
By: MIFUNE | Dec 31 2017
knock knock
General | News
By: omega | Dec 22 2016
knock knock
General | News
By: MIFUNE | Oct 10 2015
New HL HUD Message System
Half-Life | Coding | Shared Tutorials
By: chbrules | Dec 31 2011
knock knock
General | News
By: Whistler | Nov 05 2011
Particle Engine tutorial part 4
Half-Life | Coding | Client Side Tutorials
By: darkPhoenix | Feb 18 2010
Particle Engine tutorial part 2
Half-Life | Coding | Client Side Tutorials
By: darkPhoenix | Feb 11 2010
Particle Engine tutorial part 3
Half-Life | Coding | Client Side Tutorials
By: darkPhoenix | Feb 11 2010
Game Movement Series #2: Analog Jumping and Floating
Half-Life 2 | Coding | Shared Tutorials
By: mars3554 | Oct 26 2009
Particle Engine tutorial part 5
Half-Life | Coding | Client Side Tutorials
By: Deadpool | Aug 02 2009

Site Info
297 Approved Articless
8 Pending Articles
3940 Registered Members
0 People Online (5 guests)
About - Credits - Contact Us

Wavelength version:
Valid XHTML 1.0! Valid CSS!