Bug 11895 - Unable to create/remove breakpoints after time period
Summary: Unable to create/remove breakpoints after time period
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
Depends on:
Reported: 2013-04-23 05:23 UTC by Dermot
Modified: 2013-05-30 14:30 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Dermot 2013-04-23 05:23:38 UTC
Unable to create/remove breakpoints in the text editor after an undetermined amount of time since last starting Xamarin Studio. This happens constantly (about every 15 minutes) but I have yet to determine an action that causes it. It seems to simply occur after running Xamarin Studio for more than a few minutes. Closing and re-opening XS fixes the issue temporarily.
Comment 1 Eric Maurer 2013-05-06 11:48:24 UTC
I am having this same issue in version 4.04 (build 2).   Current breakpoints are hit while debugging but I am unable to add or remove breakpoints in the solution.
Comment 2 Jeffrey Stedfast 2013-05-06 14:26:43 UTC
Are you debugging on device? Is the app getting suspended (e.g. backgrounded)?
Comment 3 Eric Maurer 2013-05-06 14:38:27 UTC
I found that I can recreate the bug by debugging on the device then unplugging the device during the debug session before hitting stop.  Even after I hit stop in XS I can not longer add or remove breakpoints.
Comment 4 Jeffrey Stedfast 2013-05-06 15:25:27 UTC
I can't seem to reproduce this with git master, so it's possible that this issue has been fixed in the upcoming 4.0.5 release (which is more-or-less the same as git master at this point).

When 4.0.5 is released, can you check if that solves it for you?
Comment 5 Eric Maurer 2013-05-06 15:26:37 UTC
Definitely.  I'll update this bug when after I test.
Comment 6 Matt Cuda 2013-05-09 10:06:58 UTC
Look forward to the update.  I am also having this issue.  Currently restarting Xamarin Studio fixes the issue.
Comment 8 Eric Maurer 2013-05-17 15:17:26 UTC
I am now on 4.0.8(build 2) and I am still having this issue.  Today it seems to happen when I go between debugging in the simulator and on the device.
Comment 9 Jon Stoneman 2013-05-29 06:46:58 UTC
I also get this with 4.0.8 (build 2).  Haven't seen it when only using the simulator or only using the device.
Comment 10 Jeffrey Stedfast 2013-05-30 14:30:20 UTC
I discovered yesterday that the Breakpoints list was considered read-only if we couldn't obtain a lock on the debug session lock after 10us which may have just been too short of a timeout. It's also possible that something else had the lock, but it's impossible to know w/o being able to reproduce this.

I've removed the need to lock for the read-only check, so it will never be considered read-only anymore, thus allowing the addition and removal of breakpoints at any time.

Marking as fixed for now, but it's possible that there is a deadlock (or something else which prevented the read-only check from obtaining the lock). We'll have to see if people run into issues in 4.0.9(?)