MSDN Archive Home
Help and FAQs
Visual Studio Debug Engine Sample
All Resource Updates
Create New Discussion
Debug Engine for x64 not starting
Jun 1 2012 at 11:42 AM
I created my own Debug Engine based on the Sample Engine and completely replaced the Win32 parts with a C# implementation.
It works fine when debugging Win32 applications. My IDebugLaunchProvider derivation gets called with CanLaunch() and PrepareLaunch() and everything works fine.
When I start to debug a x64 application, then everything in my IDebugLaunchProvider derivation is the same, just nothing happens.
Somehow Visual Studio 2010 decides not to instantiate my Debug Engine.
Has anyone an idea what could be the problem?
Is there any known issue that I have to work around to get Visual Studio 2010 to launch my Debug Engine with a x64 application?
Jun 6 2012 at 7:47 AM
Jun 6 2012 at 7:48 AM
I found the issue by reverse engeneering and trial-and-error.
To have 64bit support I need to set the Registry Key
The MSDN documentation of these flags is pretty poor.
I could actually only find a documentation of SetMetric() method describing the function parameters which have luckily a similar name as the according registry entries.
But this documentation just repeats what the flag name says without explaining anything:
"metricAlwaysLoadLocal Set to nonzero in order to always load the debug engine locally."
Can anyone explain me why this flag needs to be set to have 64bit debuggee support?
Its sounds for me more like a bug of Visual Studio that the engine did not get loaded when using a 64bit debuggee that gets avoided by this flag.
Sign in to post message or set email notifications
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.