Bug 11621 - Break point setting in the IDE is extremely intermittent
Summary: Break point setting in the IDE is extremely intermittent
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 4.0.3
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-04-05 14:11 UTC by Jake Simpson
Modified: 2013-12-25 09:46 UTC (History)
5 users (show)

Tags:
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:
Status:
RESOLVED FIXED

Description Jake Simpson 2013-04-05 14:11:26 UTC
For some reason, XStudio is having real problems allowing me to either set or unset breakpoints.

Quite often it will get into a state where I simply cannot either add a break point or remove one that is already there.

The only solution to this is to restart the whole app.

NOTE - this is definitely related to debugging on the target. I never see this happening when just debugging in the simulator.
Comment 1 Jeffrey Stedfast 2013-04-05 14:14:16 UTC
Is the app suspended on the device? (when you press the home button, iOS suspends the app)
Comment 2 Kevin Mullins 2013-04-25 11:09:41 UTC
I am also having issues with breakpoints. If I set a breakpoint, compile and debug on the device I am unable to add or remove breakpoints afterwards. The only solution is to quit and restart XS.

This is 100% repeatable and I can ensure that the running app on the device has been disconnected and fully stopped.
Comment 3 Adam 2013-06-10 05:51:27 UTC
I am also having this problem.
Often, when I am debugging (the application is running), I cannot set breakpoints, and this persists even after stopping the debug session by clicking on the 'stop' button in XS.
The application is definitely not running anymore.
Still I can not set breakpoints, either by clicking in the code-editor margin, pressing the keyboard shortcut, or choosing from the menu (the debugger options are actually greyed out in the menu... they shouldnt be).
The only thing that fixes it is to restart XS.
Comment 4 Jeffrey Stedfast 2013-06-10 09:15:20 UTC
Oops, this is now fixed. Forgot this was sitting here in NEEDINFO state.

The fix will be available in the next release (assuming it's not a hotfix for a new Xcode released at WWDC).

QA has already started testing on it, so I expect it to be available next week in Beta at the least.
Comment 5 Jeffrey Stedfast 2013-08-05 12:43:58 UTC
looks like I left it in NEEDINFO state again.
Comment 6 susanta sahu 2013-12-25 09:24:11 UTC
Breakpoints: It is important to point out that the iOS gives applications only a handful of seconds (10) to startup and complete the FinishedLaunching method in the Application delegate. If the application does not complete this method in 10 seconds, the OS will kill the process.

Guys please check that your FinishedLaunching execution complets with in 6-7 seconds,
Comment 7 susanta sahu 2013-12-25 09:46:33 UTC
Run->Debug from the menu. Once the upload is complete, you will see this message: "Waiting for Debugger to connect" 

then you should manually launch the application on the device, it will connect to your Xamarin Studio and initiate debugging.

Breakpoints: It is important to point out that the iOS gives applications only a handful of seconds (10) to startup and complete the FinishedLaunching method in the Application delegate. If the application does not complete this method in 10 seconds, the OS will kill the process.

Guys please check that your FinishedLaunching execution completes with in 6-7 seconds, 

then it will start