Visual Studio 2012 Express attaching with "Automatically detect the type of code to debug" - managed code loading not detected, no breakpoint hit - by Patryk Marchwicki

Status : 

  Duplicate<br /><br />
		This item appears to be a duplicate of another existing Connect or internal item.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 769118 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 10/30/2012 12:42:05 AM
Access Restriction Public


I'm posting this bug due to lack of response on the original one - no. 768361 and additional effort I made to understand the problem.
I tested attaching VS to explorer.exe with "Automatically detect the type of code to debug" and with "Managed (v4.0, v4.5)" explicitly selected. I run tests on a windows explorer (shell extension) addin which I downloaded from
When "Automatically ..." is selected and explorer.exe has not loaded managed code (is running in native mode), then VS2012 doesn't detect the change of type code to debug the moment the managed code is loaded, thus no breakpoint is hit.
When the explorer.exe has already loaded managed code (is running in managed mode) or  with "Managed" code type explicitly selected - the breakpoints are hit.
Furthermore, debugging with VS2010 Express is working correctly (by attaching I mean adding <startprogram> and other properties to csproj file, because VS2010 Express doesn't have attaching in user interface).
I assume that the problem can be reproduced for any process that is initially running in native mode and at some point is loading managed code.
I proved that the problem is not SW EPDM-related (in the original post I was debugging SW EPDM addin) but Visual Studio 2012-related.
Sign in to post a comment.
Posted by Microsoft on 11/1/2012 at 1:37 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. Upon review of this issue , we have identified it as a duplicate Connect bug. We have closed this bug as a duplicate. We will contact you if we require any additional information.
Posted by Microsoft on 10/30/2012 at 12:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(