Welcome, Guest! Login | Register

Debugging in Visual Studio .net [Print this Article]
Posted by: Shimms
Date posted: Apr 25 2003
User Rating: N/A
Number of views: 2812
Number of comments: 0
Description:
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 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 (21 guests)
About - Credits - Contact Us

Wavelength version: 3.0.0.9
Valid XHTML 1.0! Valid CSS!