Bug 14383 - Debugger wont connect, but the app launches on device.
Summary: Debugger wont connect, but the app launches on device.
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 1.6.x
Hardware: PC Mac OS
: High critical
Target Milestone: 1.6.x (connection)
Assignee: Vinicius Jarina
URL:
Depends on:
Blocks:
 
Reported: 2013-09-03 02:49 UTC by James Clancey
Modified: 2016-05-10 17:01 UTC (History)
11 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 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:
VERIFIED FIXED

Description James Clancey 2013-09-03 02:49:16 UTC
The following happens regularly. I have to clean all to fix. And sometimes restart VS.
The output says starting debugging session. The app launches on the device.  Nothing from the app goes to the console output. And no breakpoints hit.
Comment 1 Dennis Schneider 2013-09-09 09:22:31 UTC
Same problem here... 

https://bugzilla.xamarin.com/show_bug.cgi?id=14416
Comment 2 GouriKumari 2013-10-08 20:21:58 UTC
Verified this bug with Xamarin.iOS for VS 1.6.60.msi

Actual Result:
Debugger does connect and breakpoint gets hit while deploying an ioS app to a device. 
However, user is not able continue with debugging, since the app comes out of the session within a few seconds. The issue is only partially fixed.

Supplemental Info:
Debug Screencast:http://screencast.com/t/uIdnMvqdsr
MacServerLog: https://gist.github.com/GouriKumari/3b650450d8a4f36d8b06


Test Env:
Xamarin.iOS for VS 1.6.60.msi
VS2012
Windows7
Comment 3 GouriKumari 2013-10-08 20:26:13 UTC
Updates to the supplemental Info:
Debug Screencast: http://screencast.com/t/jTPZeaSUd
Comment 4 Vinicius Jarina 2013-10-09 17:39:53 UTC
@GouriKumari 

This is the iOS behavior, when the application starts you have around ~30 sec to return FinishLaunching() if  you take too long iOS will kick out your App.

This will happen with XS as well. http://screencast.com/t/IFEU1LkQ5G
Comment 5 GouriKumari 2013-10-09 18:43:30 UTC
Thanks Jarina. I made a mistake in setting the first break point. Verified the bug again with the latest build 1.6.71 and debugging on device is working as expected. Marking the bug as resolved fixed.

Test Env:
VS2012
Windows7
Xamarin.iOS 1.6.71.msi

Supplemental Info: 
http://screencast.com/t/r3DIa3IaBfcP
Comment 6 Dominique Louis 2013-10-10 04:23:05 UTC
Just to be clear, the timeout is closer to ~20seconds before the OS kills it.
Comment 7 narayanp 2013-11-06 11:46:51 UTC
Today I have checked this issue with following builds:

All Windows
VS 2013/2012/2010
iOS for VS 1.8.294
X.iOS 7.0.4.175

Now we are successfully able to deploy application on device when using breakpoint in application and not seeing 'Debug session ended'. This is the screencast for the same: http://screencast.com/t/r4rPXXfOimu

Changing the status to Verified.