How to debug DXCore plug-ins under Visual Studio 2010 SP1
Visual Studio Service Pack 1 introduced an issue that prevents breakpoints to be hit while debugging DXCore plug-ins. When you hit F5 to run the plug-in project, Visual Studio builds it and starts the second instance of Visual Studio where you can debug the plug-in. However, the breakpoints inside plug-in project won’t be hit when you have SP1 installed. The corresponding bug report is registered on the MS Connect. It seems that the issue is in the TargetFramework version set for the project: if the version is 2.0 – the break point won’t be hit.
Therewith, if you try to execute the “Break All” command, the following error appears:
There are two workarounds for this issue:
- Manually attach to the debugging Visual Studio instance via the “Tools | Attach to Process…” menu item
- Change the TargetFramework version of the project to 4.0.
Let me know if you have issues with debugging of DXCore plug-ins under VS2010 SP1.—– Products: all Versions: 10.2 and up VS IDEs: any Updated: Mar/18/2011 ID: T043