Red Gate forums :: View topic - unable to set breakpoint
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
.Net Reflector 6.x and .NET Reflector 6.x Pro
.Net Reflector 6.x and .NET Reflector 6.x Pro forum

unable to set breakpoint

Search in .Net Reflector 6.x and .NET Reflector 6.x Pro forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
jlorenzon



Joined: 16 Mar 2010
Posts: 1

PostPosted: Tue Mar 16, 2010 8:53 am    Post subject: unable to set breakpoint Reply with quote

Hi I'm not sure if this is a problem with reflector or VS 2010 - I'm trying to debug into a .net assembly (System.Web.DynamicData). Following the instructions here, I can decompile it no probs, and view the decompiled assemblies also, no probs.

However, when I set a breakpoint I get an error message "Unable to set breakpoint" with a bunch of error details, and finishes by saying "the common language runtime was unable to set the breakpoint"

The breakpoint then shows up as disabled. Continuing to debug, the program will break at the breakpoint, but no information for any local variables will be available as the code is "optimized".
Back to top
View user's profile Send private message
Clive Tong



Joined: 04 Dec 2008
Posts: 283

PostPosted: Tue Mar 16, 2010 9:55 am    Post subject: Reply with quote

Hi.

We've not seen that message before when setting a breakpoint.

Do you have a small self contained example that you could send me that reproduces the problem? If not, what method are you trying to breakpoint?

Thanks
Back to top
View user's profile Send private message
MikeYeager



Joined: 04 Feb 2009
Posts: 4

PostPosted: Fri Nov 12, 2010 10:09 pm    Post subject: Reply with quote

I'm experiencing this also, in my case I'm debugging a Windows Service, so I have to run the service, than attach the debugger to it. Visual Studio 2010. Maybe that's the problem? It's really annoying because I have to step through a LOT of code to get to the place I want to debug. OTOH, it's better than nothing! Very Happy
Back to top
View user's profile Send private message
Clive Tong



Joined: 04 Dec 2008
Posts: 283

PostPosted: Tue Nov 16, 2010 9:27 am    Post subject: Reply with quote

Can you give us any more details about the service so I can try to reproduce?

Thanks
Back to top
View user's profile Send private message
MikeYeager



Joined: 04 Feb 2009
Posts: 4

PostPosted: Tue Nov 16, 2010 4:23 pm    Post subject: Reply with quote

I don't think I'll be able to spend the time required to create a simplified example, but I'll tell you what I can. We're hosting our Wcf Service in a Windows Service and using the Net.Tcp protocol with sessions enabled. Another thing we found was a dialog when trying to set a breakpoint saying that the dll we were debugging had been optimized. In the debugging session, I'm installing the Windows Service on my development box and running it under the Local System account (lots of rights). Then I start VS2010 and attach to the process with the debugger and set a breakpoint in my code. Once I step into the DLLs where the error occurs (Microsoft.Synchronization.Data and Microsoft.Synchronization.Data.SqlServer) I find that Step Over sometimes skips over several lines of code at once, so I always use Step Into instead. In a couple of instances, it seems to return from the middle of a method, several levels higher in the call stack for no apparent reason. Hope this helps...
Back to top
View user's profile Send private message
Clive Tong



Joined: 04 Dec 2008
Posts: 283

PostPosted: Tue Nov 16, 2010 4:26 pm    Post subject: Reply with quote

Thank you for the information. I'll have a go at reproducing the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group