Mahol Dot Org

Icon

Weblog For All Your Need

How To Set Environment Variable When Debugging Using Microsoft Visual Studio 2008

Set up project properties environment variable

I am new to microsoft windows visual studio 2008 IDE , Was looking for How to set environment variables when debugging in Visual Studio?
My project is in c/c++ windows console application.

Set Environment Variables in VS2008

Here are few simple steps to add environment variable.

  1. Open your project.
  2. Go to Project>Properties or pres Alt+F7
  3. Under Configuration Properties>Debugging, edit the ‘Environment’ value to set environment variables.

I wanted to set and add the directory “C:\Program Files\Hummingbird\Connectivity\13.00\Exceed” to the path when debugging app X applications, set the ‘Environment’ value to

PATH=%PATH%;C:\Program Files\Hummingbird\Connectivity\13.00\Exceed;C:\Program Files\Intel\Compiler\Fortran\10.1.021\IA32\Bin

And done.

Set System Wide Environment Variables in Windows PC

Other way to set up this is using system wide environment variable.

  1. Right click “My Computer”, Select properties
  2. Select the “advanced” tab
  3. Click the “environment variables” button
  4. In the “System variables” section, add the new environment variable that you desire
  5. “Ok” all the way out to accept your changes

Note : Visual Studio 2003 doesn’t allow you to set environment variables for debugging. In this case one can use _putenv function.
source – Windows Sysinternals: Documentation, downloads and additional resources

Number of View :694

Related posts:

  1. Debugging Fortran Programs Using IDB How To Debug Fortran Code Ifort Commands
  2. How To Debug Err This Application Has Failed To Start Because MSVCR90.dll Was Not Found
  3. Unresolved External Symbol _getenv_ USE IFPORT Link Error For Application Porting From UNIX To Win32
  4. How To _access Function For Long File Names As Path In Winddows Programming Use UNC
  5. Solution – C Requires That a Struct Or Union Has At Least One Member
Receive Updates By Email

Enter your email address:

Delivered by FeedBurner

Category: Unix2Win32_Porting

Tagged: , ,

Leave a Reply

Lost !! Use Advanced Search

Categories

Content Protected Using Blog Protector By: PcDrome.

Mahol Dot Org is Digg proof thanks to caching by WP Super Cache