Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug Visual Studio in 64-bit

OK, after creating an application I want it to be compatible for 64 and 32 bit systems. By default Visual Studio debugs applications in x86 (which is 32-bit). So how can I make Visual Studio debug in x64, for 64-bit systems. Thanks.

like image 388
user959631 Avatar asked Oct 20 '11 20:10

user959631


People also ask

How do I run Visual Studio in 64-bit mode?

From the Visual Studio menu, choose Test, then choose Settings, and then choose Processor Architecture. Choose x64 to run the tests as a 64-bit process.

What is x64 Debug?

X64dbg is an application designed for debugging applications and other .exe files on your Windows computer. This is a fast way to test for and remove any errors in an application you're developing. The software is open-sourced, making it safe and fully-customizable if you want to add your own coding to the application.

How do I run a 32 bit program on a 64-bit environment?

To run a web application in 32bit mode on an 64bit OS open the IIS Manager and navigate to the application pool that the application should run in. Select the application pool and select “Advance Settings…”. In the Advanced Settings dialog set the “Enable 32-Bit Applications” to true.

Is Visual Studio 32 bit or 64-bit?

Visual Studio remains a 32 bit application, though certain components (e.g., diagnostics/debuggers, MSBuild, compilers, designers) will take advantage of 64-bit processors if available.


1 Answers

Not sure what language but if it's C# ...

The default build setting for C# projects is an x86 build in debug mode in Visual Studio 2010. To debug in 64 bit you simple need to change the build setting to 64 bit.

  • Right click on the project and select properties
  • Switch to the build tab
  • Change "Platform Target" to x64
like image 83
JaredPar Avatar answered Oct 18 '22 02:10

JaredPar