In Visual Studio 2008 and Visual Studio 2005 at least, you can specify changes to environment variables in the project settings.
Open your project. Go to Project -> Properties… Under Configuration Properties -> Debugging, edit the ‘Environment’ value to set environment variables.
For example, if you want to add the directory “c:\foo\bin” to the path when debugging your application, set the ‘Environment’ value to “PATH=%PATH%;c:\foo\bin”.
Related Contents:
- Visual Studio: How to break on handled exceptions?
- Slow debugging issue in Visual Studio
- Error: Cannot access file bin/Debug/… because it is being used by another process
- How to debug external class library projects in visual studio?
- Visual Studio 2010 isn’t building before a run when there are code changes
- Break when a value changes using the Visual Studio debugger
- How do you use the Immediate Window in Visual Studio?
- Visual Studio refuses to forget breakpoints?
- Visual Studio – how to find source of heap corruption errors
- How to make visual studio break only on unhandled exceptions?
- How do I remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?
- Microsoft.ACE.OLEDB.12.0 provider is not registered
- How do I install a NuGet package .nupkg file locally?
- What are the differences between Visual Studio Code and Visual Studio?
- How do I diagnose and fix a Visual Studio (for example 2015, 2017) crash?
- What is the best way to dump entire objects to a log in C#?
- What are the obj and bin folders (created by Visual Studio) used for?
- Difference between Rebuild and Clean + Build in Visual Studio
- Where does Visual Studio 2017 store its config?
- Call C standard library function from asm in Visual Studio
- Can you force Visual Studio to always run as an Administrator in Windows 8?
- How do I set a path in Visual Studio?
- NUnit isn’t running Visual Studio 2010 code
- Will installing Visual Studio 2010 side by side with VS2008 cause problems?
- How to set standard encoding in Visual Studio
- Custom Intellisense Extension
- Should I add the Visual Studio .suo and .user files to source control?
- Visual Studio Post Build Event – Copy to Relative Directory Location
- What is a “first chance exception”?
- Microsoft Visual Studio: opendir() and readdir(), how?
- Why is Visual Studio 2010 not able to find/open PDB files?
- Error HRESULT E_FAIL has been returned from a call to a COM component VS2012 when debugging
- What does “Optimize Code” option really do in Visual Studio?
- Open a file in Visual Studio at a specific line number
- Has anyone had success with Visual Studio 6 on Windows 7?
- How does CMake specify “Platform Toolset” for a Visual Studio 2015 project?
- Uniquely Identifying Reference Types in the Debugger
- Adding a guideline to the editor in Visual Studio
- Visual Studio project type guids
- Solution-wide pre-build event?
- ESLint support Visual studio 2017
- Unable to create the virtual machine
- Avoiding “Press any key to continue” when running console application from Visual Studio
- Program and debugger quit without indication of problem
- Can the Visual Studio Debugger display strings unquoted/unescaped?
- Unblocking a DLL on a company machine. How?
- Change language of Visual Studio 2017 RC
- Visual C++: How to disable specific linker warnings?
- How do I attach Visual Studio to a process that is not started yet?
- “Value does not fall within the expected range” when trying to add a reference in a project