all groups > dotnet clr > june 2005 >
You're in the

dotnet clr

group:

CLR Unable to set breakpoints



CLR Unable to set breakpoints Niall
6/30/2005 6:31:02 PM
dotnet clr: I'm trying to diagnose the cause of excessive induced garbage collections in
our app. In the past, this has been easily achieved by setting a breakpoint
in System.GC.Collect and looking at the call stack. However, when I attempt
to do this while attached to our application, I get the message "The common
language runtime was unable to set the breakpoint."

I've seen this message before setting breakpoints in other places and just
accepted it. But now I really need to be able to set this breakpoint, and I
know it has worked in the past. I tried it on a test application that is very
small and it worked fine, but not in our gargantuan app.

Does anyone have any more information about this for me? I've done some web
searching and I can't even find anyone else talking about the problem, let
alone a solution. Any ideas?

RE: CLR Unable to set breakpoints v-jetan NO[at]SPAM online.microsoft.com (
7/1/2005 9:17:42 AM
Hi Niall,

Thanks for your post.

I have created a sample C# project, and set a breakpoint at
System.GC.Collect with VS.net2003 IDE. Then my project can successfully
stop at System.GC.Collect. So it seems that this problem can not be easily
reproduced out. Yes, I see that you have figured out that this problem only
existed in your gargantuan application.

With "The common language runtime was unable to set the breakpoint."
message, I seached our internal database, I found 2 reported issues.
However, these 2 issues are both closed as "not reproduced".

Currently, I can not think of any good suggestion for this issue. Looking
at the nature of this issue, it would require intensive troubleshooting
which would be done quickly and effectively with direct assistance from a
Microsoft Support Professional through Microsoft Product Support Services.
Then there will be Microsoft support engineer work with you 1:1 and he may
help you do some deep debugging with this issue.

You can contact Microsoft Product Support directly to discuss additional
support options you may have available, by contacting us at 1-(800)936-5800
or by choosing one of the options listed at:
http://www.microsoft.com/services/microsoftservices/supp.mspx

Hope this helps

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
AddThis Social Bookmark Button