Not sure which language, but if it is C # ...
The default value for C # projects is to build x86 in debug mode in Visual Studio 2010. To debug in the 64-bit version, you just need to change the build setting to 64 bits.
- Right click on the project and select properties
- Go to the assembly tab
- "Target Platform" x64