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 .net
Welcome, Guest! Login | Register

Debugging in Visual Studio .net [Print this Article]
Posted by: Shimms
Date posted: Apr 26 2003
User Rating: N/A
Number of views: 4873
Number of comments: 0
When TAE made the move from Visual Studio 6 to Visual Studio .net one of the things I had to re-configure was the debugging settings.

Although Adrian wrote a tutorial on setting up debugging in Visual Studio 6, and it does translate into .net vaguely, this one is a step by step walk through of how to do it.

First of all open up the configurations manager to ensure you have a Debug configuration setup:

user posted image

Once you have done that, open the Solutions Explorer, go to the top of the list and right click on your project. From the popup menu, select "Properties"

user posted image

This should launch the Property Pages for your selected project. The .net properties pages are totally different to the Visual Studio 6 pages, this is where most people would have gotten lost.

In the Configurations folder, select the Debugging node. We're only worrying about the Action section at this time. The Command field is the path to hl.exe, so go ahead and fill it in. The Command Arguments are arguments you wish to supply to the above Command field. That's stuff like enabling the console etc. Finally set the working directory to the path in which Half-Life is stored.

user posted image

Next we need to tell it to actually build debugging information. We do this from the Linker folder, Debug node. Just set Generate Debug Info to 'Yes (/DEBUG)'

user posted image

With that done, Debugging has been setup. To start you debugging session, hit F5, and you may be prompted with a message telling you that your configuration is out of date. Don't worry about it, it just means you have made changes since your last Debug. Click the Yes button to build your dll.

user posted image

When Half-Life starts, you will be told that hl.exe contains no Symbolic Information. This just means if hl.exe has an error you can't debug that file. It's easier to click the "Don't show this dialog again" check box and continue.

user posted image

Rate This Article
This article has not yet been rated.

You have to register to rate this article.
User Comments

No User Comments

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 (3 guests)
About - Credits - Contact Us

Wavelength version:
Valid XHTML 1.0! Valid CSS!