Bug 21010 - Conditional breakpoint still hit if condition is changed while the app is being debugged
Summary: Conditional breakpoint still hit if condition is changed while the app is bei...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 3.0
Hardware: PC Windows
: Normal normal
Target Milestone: 4.0.0 (C6)
Assignee: Bugzilla
Depends on:
Reported: 2014-07-01 10:58 UTC by softlion
Modified: 2016-05-10 17:04 UTC (History)
8 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 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 softlion 2014-07-01 10:58:54 UTC
I set a normal breakpoint, start debugging.
While the program is paused on this breakpoint, I add a condition to the breakpoint then press F5.
The breakpoint is still hit.

ios app on ios 7.1 simulator
visual studio 2013
Xam ios/vs v3.0.56.0
Comment 1 Ram Chandra 2014-07-01 12:35:42 UTC
I have checked this issue and I am able to reproduce this issue.

Steps to reproduce:

1. Create an iOS "Hello World Application".
2. Write the following code in the button's TouchUpInside() method.
    int a=10

3. Put the breakpoint on both the line.
4. add the condition on the following line while program is stopped on first break point. (right click on second break point => condition=> write the the "a==10" on textbox=> choose "Is true")
5. Press F5 key.

When I apply a condition on a breakpoint while the program is stopped on previous breakpoint I observed that breakpoint is still hit on that line. I have also observed that when I add the condition when program is not running and run the program after adding the condition to the breakpoint. It is working fine. The breakpoint is never hit on that line but it is not working when we add condition to the breakpoint while program is paused.

Screencast: http://www.screencast.com/t/M3eClKAfVJ

Environment Info:

Windows 7

Microsoft Visual Studio Professional 2013
Version 12.0.21005.1 REL
Microsoft .NET Framework
Version 4.5.50938
Installed Version: Professional

Xamarin (269d269fda3ba21b344e49a4d6a048dc1539e7a4)
Xamarin.iOS (269d269fda3ba21b344e49a4d6a048dc1539e7a4)

Xamarin.iOS :
Xcode 5.1 (5084)
Comment 2 Joaquin Jares 2015-09-16 09:01:12 UTC
This is now fixed in master and will be released in the next alpha refresh.