Bug 12617 - Xamarin Studio Debugger never connects to devices, stuck at : "Waiting for debugger to connect..."
Summary: Xamarin Studio Debugger never connects to devices, stuck at : "Waiting for de...
Status: VERIFIED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Debugger ()
Version: 4.0.8
Hardware: Macintosh Mac OS
: High major
Target Milestone: 5.0
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2013-06-10 04:41 UTC by Alek Slater
Modified: 2017-06-09 16:18 UTC (History)
13 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:
VERIFIED NOT_REPRODUCIBLE

Description Alek Slater 2013-06-10 04:41:37 UTC
4.0.8 Build 2 of Xamarin Studio never connects to my devices, it builds (albeit very slowly), installs OK, starts the app, but then it never quite gets to connect with the debugger.

Here's the application output, let me know if you need anything else:

Please ensure your device is connected...
Connected to: Skelminipad
Launching /private/var/mobile/Applications/131B0A0D-B758-4DFF-8AB8-87EDAE30386F/iPadClient.app -debugtrack -monodevelop-port 10000 -connection-mode usb
Comment 1 Matt Jones 2013-06-10 04:50:54 UTC
I get this too. Used to work fine in recent builds.
Comment 2 Alek Slater 2013-06-10 04:53:10 UTC
I've tested this with a brand new project too, absolutely no difference in the behaviour of the debugger.
Comment 3 Jeffrey Stedfast 2013-06-14 13:13:02 UTC
How are you trying to start your app in the debugger?

If you click the "Play" button, does it work?

The people who have had this problem in the past it was because they were using the keybinding for "Run without Debugging".
Comment 4 Alek Slater 2013-06-14 13:18:32 UTC
No, I always use the play button and it still does not work.
Comment 5 Jeffrey Stedfast 2013-06-14 13:22:03 UTC
Rolf, Sebastien: any ideas? I can't reproduce this. Sounds like it could be a runtime issue not connecting back to Xamarin Studio, but I don't know.
Comment 6 Alek Slater 2013-06-14 14:16:42 UTC
My gut feeling tells me https://bugzilla.xamarin.com/show_bug.cgi?id=12362 and this bug are related.

For the record I've got:
Version 4.6.2 (4H1003) of Xcode
Version 10.8.4 of OS X
Comment 7 Matt Jones 2013-06-17 06:46:54 UTC
This used to work on mine before I updated to OSX 10.8 and the latest XCode. I've tried it on half a dozen iOS devices and I can't get a connection on anything.
Comment 8 Matt Jones 2013-06-17 07:15:13 UTC
In addition, XCode connects to the device correctly when in debug mode.
Comment 9 Rolf Bjarne Kvinge [MSFT] 2013-06-19 17:56:33 UTC
Can you add "-v -v -v" to the additional mtouch arguments in the project's iOS Build options page, and then get all the output sent to the device console?
Comment 11 Rolf Bjarne Kvinge [MSFT] 2013-06-20 06:57:10 UTC
@Alek: can you try switching to wifi (in Xamarin Studio's Preferences, toggle the checkbox in Projects/Debugger/iPhone Debugger)? And if it doesn't work, please attach the console output again.
Comment 12 Alek Slater 2013-06-20 07:35:40 UTC
@Rolf, I've given that a go, and it seems to work, every single time.
So yeah, i guess this bug only affects usb-debugging, on wifi, it seems fine :D
Comment 19 PJ 2013-07-15 18:04:25 UTC

*** This bug has been marked as a duplicate of bug 13255 ***
Comment 20 Kristin 2013-07-21 19:01:58 UTC
Hello,  I have been having this issue for the past couple days for both USB and Wifi mode.  I have rebooted both the ipod and Mac.  All the output i get is similar to what was in the first post.  Xcode can launch to my device and xamarin can launch to the simulators.  This use to work with my ipod but suddenly stopped working.  Its been driving me insane that it will no longer launch to my ipod!
Comment 21 Rolf Bjarne Kvinge [MSFT] 2013-07-22 03:43:52 UTC
Kristin: can you get the information requested in comment 11?
Comment 22 Jeffrey Stedfast 2013-07-22 17:22:36 UTC
Alek, Kristin,

Do you have multiple devices plugged in?
Comment 23 Alek Slater 2013-07-22 22:15:29 UTC
Not always no, it would also happen with just a single device.
Comment 24 Kristin 2013-07-23 21:45:27 UTC
Debugging with WiFi (same happens with USB)

Please ensure your device is connected...
Connected to: Aqua
Launching /private/var/mobile/Applications/4F2C1499-FBA5-4CAB-9F36-E478DDE2AE19/TaskyiOS.app -debugtrack -monodevelop-port 51461 -connection-mode wifi

And at the top it says: Waiting to connect on port 51461

I have the log set to "diagnosic" running with the play button.
Comment 25 Kristin 2013-07-23 21:47:27 UTC
*Waiting for debugger to connect on port 51461...

And i am only using one device a 5th gen ipod touch 6.1.3
Comment 26 Rolf Bjarne Kvinge [MSFT] 2013-07-24 04:18:53 UTC
Kristin: can you add "-v -v -v" to the additional mtouch arguments in the project's iOS
Build options page, clean and rebuild, and then get all the output sent to the iOS device console (for both wifi and usb mode)?
Comment 27 Kristin 2013-07-26 01:14:31 UTC
Wifi:

Jul 26 00:46:23 Aqua installd[54] <Error>: 0x2ff8b000 handle_install: Install of "/var/mobile/Media/PublicStaging/TaskyiOS.app" requested by mobile_installation_proxy
Jul 26 00:46:23 Aqua installd[54] <Error>: 0x2ff8b000 MobileInstallationInstall_Server: Installing app com.xamarin.samples.taskyios
Jul 26 00:46:23 Aqua installd[54] <Error>: Jul 26 00:46:23  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
Jul 26 00:46:25 Aqua SpringBoard[68] <Warning>: Killing com.xamarin.samples.taskyios for termination assertion
Jul 26 00:46:25 Aqua com.apple.launchd[1] (UIKitApplication:com.xamarin.samples.taskyios[0x319b][1571]) <Notice>: (UIKitApplication:com.xamarin.samples.taskyios[0x319b]) Exited: Killed: 9
Jul 26 00:46:25 Aqua backboardd[26] <Warning>: Application 'UIKitApplication:com.xamarin.samples.taskyios[0x319b]' exited abnormally with signal 9: Killed: 9
Jul 26 00:46:26 Aqua installd[54] <Error>: 0x2ff8b000 MobileInstallationInstall_Server: Staging: 0.43s; Waiting: 0.00s; Installation: 2.20s; LS Sync: 0.02s; Overall: 2.65s
Jul 26 00:46:26 Aqua lsd[84] <Warning>: updating identifier store
Jul 26 00:46:26 Aqua lsd[84] <Warning>: Attempting to store identifiers file
Jul 26 00:46:26 Aqua kernel[0] <Debug>: launchd[1629] Builtin profile: syncdefaultsd (sandbox)
Jul 26 00:46:27 Aqua mobile_storage_proxy[1630] <Error>: 0x3b4c0b88 handle_lookup_image: Entry 2 of 4 does not have a disk image type
Jul 26 00:46:27 Aqua MobileStorageMounter[1631] <Error>: Jul 26 00:46:27  SecTrustEvaluate  [leaf AnchorTrusted]
Jul 26 00:46:27 Aqua MobileStorageMounter[1631] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/.TrustCache
Jul 26 00:46:27 Aqua MobileStorageMounter[1631] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/Applications
Jul 26 00:46:27 Aqua MobileStorageMounter[1631] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/Applications/MobileReplayer.app
Jul 26 00:46:27 Aqua MobileStorageMounter[1631] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/Applications/MobileReplayer.app/_CodeSignature.
------------------lots of these-----------------------
Jul 26 00:46:27 Aqua MobileStorageMounter[1631] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/usr/libexec
Jul 26 00:46:27 Aqua MobileStorageMounter[1631] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/usr/libexec/gputoolsd
Jul 26 00:46:27 Aqua MobileStorageMounter[1631] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/usr/libexec/vpnagent
Jul 26 00:46:27 Aqua MobileStorageMounter[1631] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/usr/libexec
Jul 26 00:46:27 Aqua MobileStorageMounter[1631] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/usr
Jul 26 00:46:27 Aqua MobileStorageMounter[1631] <Error>: 0x3b4c0b88 verify_dimage_mount_path: /Developer is not empty
Jul 26 00:46:27 Aqua MobileStorageMounter[1631] <Error>: 0x3b4c0b88 perform_disk_image_mount: Could not verify the disk image mount path
Jul 26 00:46:27 Aqua MobileStorageMounter[1631] <Error>: 0x3b4c0b88 handle_mount_disk_image: The disk image failed to verify and mount
Jul 26 00:46:27 Aqua MobileStorageMounter[1631] <Error>: 0x3b4c0b88 handle_mount_disk_image: The disk image could not be verified
Jul 26 00:46:27 Aqua mobile_storage_proxy[1630] <Error>: 0x3b4c0b88 MobileStorageMount: Could not extract mount path from response message
Jul 26 00:46:27 Aqua mobile_storage_proxy[1630] <Error>: 0x3b4c0b88 handle_mount_image: Could not mount the disk image
Jul 26 00:46:27 Aqua mobile_storage_proxy[1630] <Error>: 0x3b4c0b88 main: Could not mount the image
Jul 26 00:46:28 Aqua mobile_installation_proxy[1633] <Error>: 0x3b4c0b88 MobileInstallationSlowLookupBreak: MobileInstallationBrowse was called without specifying an options dictionary containing kLookupReturnAttributesKey. This usage is inefficient and may cause performance problems. Break on MobileInstallationSlowLookupBreak to debug.
Jul 26 00:46:28 Aqua mobile_installation_proxy[1633] <Error>: 0x3b4c0b88 MobileInstallationSlowLookupBreak: Existing options dictionary: <CFBasicHash 0x1e5073a0 [0x39b7c100]>{type = mutable dict, count = 1,
entries =>
0 : <CFString 0x911a0 [0x39b7c100]>{contents = "RequestProxiedFor"} = <CFString 0x1e507500 [0x39b7c100]>{contents = "mtouch"}
}
Jul 26 00:46:28 Aqua com.apple.debugserver-199[1634] <Warning>: debugserver-199 for armv7.
Jul 26 00:46:28 Aqua com.apple.debugserver-199[1634] <Warning>: Connecting to com.apple.debugserver service...
Jul 26 00:46:28 Aqua kernel[0] <Debug>: lockbot[1627] Builtin profile: debugserver (sandbox)
Jul 26 00:46:28 Aqua mobile_installation_proxy[1636] <Error>: 0x3b4c0b88 MobileInstallationSlowLookupBreak: MobileInstallationBrowse was called without specifying an options dictionary containing kLookupReturnAttributesKey. This usage is inefficient and may cause performance problems. Break on MobileInstallationSlowLookupBreak to debug.
Jul 26 00:46:28 Aqua mobile_installation_proxy[1636] <Error>: 0x3b4c0b88 MobileInstallationSlowLookupBreak: Existing options dictionary: <CFBasicHash 0x1dd67670 [0x39b7c100]>{type = mutable dict, count = 1,
entries =>
0 : <CFString 0xf81a0 [0x39b7c100]>{contents = "RequestProxiedFor"} = <CFString 0x1dd677d0 [0x39b7c100]>{contents = "mtouch"}
}
Jul 26 00:46:29 Aqua com.apple.debugserver-199[1637] <Warning>: debugserver-199 for armv7.
Jul 26 00:46:29 Aqua com.apple.debugserver-199[1637] <Warning>: Connecting to com.apple.debugserver service...
Jul 26 00:46:29 Aqua com.apple.debugserver-199[1637] <Warning>: Got a connection, waiting for process information for launching or attaching.
Jul 26 00:46:29 Aqua backboardd[26] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=1
Jul 26 00:46:29 Aqua mediaserverd[39] <Error>: 00:46:29.114 <0x2ff3a000> AudioConverterNew returned -50
Jul 26 00:46:29 Aqua mediaserverd[39] <Error>: 00:46:29.116 <0x2ff3a000> IO_ChangeIOFormat: error -50
Jul 26 00:46:29 Aqua mediaserverd[39] <Error>: 00:46:29.118 <0x2ff3a000> Queue_ChangeIOFormat: failed (-50)
Jul 26 00:46:29 Aqua backboardd[26] <Notice>: MultitouchHID: detection mode: 255->0 (deferring until bootloaded)
Jul 26 00:46:29 Aqua com.apple.launchd[1] (UIKitApplication:com.xamarin.samples.taskyios[0xb873][1639]) <Warning>: (UIKitApplication:com.xamarin.samples.taskyios[0xb873]) Spawned and waiting for the debugger to attach before continuing...
Jul 26 00:46:29 Aqua profiled[1638] <Notice>: (Note ) profiled: Service starting...
Jul 26 00:46:29 Aqua profiled[1638] <Notice>: (Note ) profiled: Recomputing passcode requirement message
Jul 26 00:46:29 Aqua kernel[0] <Debug>: lockbot[1627] Builtin profile: debugserver (sandbox)
Jul 26 00:46:29 Aqua kernel[0] <Debug>: set_crc_notification_state 0
Jul 26 00:46:29 Aqua kernel[0] <Debug>: launchd[1639] Builtin profile: container (sandbox)
Jul 26 00:46:29 Aqua kernel[0] <Debug>: launchd[1639] Container: /private/var/mobile/Applications/453CA1E9-C1AC-45EE-8D19-8D2A1804A3AA (sandbox)
Jul 26 00:46:29 Aqua kernel[0] <Debug>: ALS: AppleARMBacklight::handleMessageGated - framebufferState -> 1
Jul 26 00:46:29 Aqua kernel[0] <Debug>: ALS: AppleARMBacklight::setBacklightEnableGated 1 (set level to 0x4fe)
Jul 26 00:46:29 Aqua backboardd[26] <Notice>: MultitouchHID: device bootloaded
Jul 26 00:46:29 Aqua backboardd[26] <Notice>: MultitouchHID: detection mode: 0->0
Jul 26 00:46:29 Aqua com.apple.debugserver-199[1637] <Warning>: Got a connection, waiting for debugger instructions.
Jul 26 00:46:29 Aqua com.apple.debugserver-199[1637] <Warning>: 1 +0.000000 sec [0665/0303]: error: ::ptrace (request = PT_THUPDATE, pid = 0x0667, tid = 0x2403, signal = -1) err = Invalid argument (0x00000016)
Jul 26 00:46:29 Aqua com.apple.debugserver-199[1637] <Warning>: 2 +0.003442 sec [0665/1303]: error: ::read ( 5, 0x2fe809fc, 18446744069414585344 ) => -1 err = Bad file descriptor (0x00000009)
Jul 26 00:46:29 Aqua com.apple.debugserver-199[1634] <Warning>: 1 +0.000000 sec [0662/0303]: error: ::read ( 5, 0x2fd10ebc, 1024 ) => 0 err = Bad file descriptor (0x00000009)
Jul 26 00:46:29 Aqua mobile_installation_proxy[1635] <Error>: main: Could not receive request from host.
Jul 26 00:46:29 Aqua mobile_installation_proxy[1632] <Error>: main: Could not receive request from host.
Jul 26 00:46:36 Aqua assistantd[1640] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary




USB:

Jul 26 00:48:40 Aqua installd[54] <Error>: 0x2ff8b000 handle_install: Install of "/var/mobile/Media/PublicStaging/TaskyiOS.app" requested by mobile_installation_proxy
Jul 26 00:48:40 Aqua installd[54] <Error>: 0x2ff8b000 MobileInstallationInstall_Server: Installing app com.xamarin.samples.taskyios
Jul 26 00:48:40 Aqua installd[54] <Error>: Jul 26 00:48:40  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
Jul 26 00:48:42 Aqua SpringBoard[68] <Warning>: Killing com.xamarin.samples.taskyios for termination assertion
Jul 26 00:48:42 Aqua com.apple.launchd[1] (UIKitApplication:com.xamarin.samples.taskyios[0xb873][1639]) <Notice>: (UIKitApplication:com.xamarin.samples.taskyios[0xb873]) Exited: Killed: 9
Jul 26 00:48:42 Aqua backboardd[26] <Warning>: Application 'UIKitApplication:com.xamarin.samples.taskyios[0xb873]' exited abnormally with signal 9: Killed: 9
Jul 26 00:48:42 Aqua lsd[84] <Warning>: updating identifier store
Jul 26 00:48:42 Aqua lsd[84] <Warning>: Attempting to store identifiers file
Jul 26 00:48:42 Aqua installd[54] <Error>: 0x2ff8b000 MobileInstallationInstall_Server: Staging: 0.42s; Waiting: 0.00s; Installation: 2.28s; LS Sync: 0.00s; Overall: 2.82s
Jul 26 00:48:43 Aqua kernel[0] <Debug>: launchd[1652] Builtin profile: syncdefaultsd (sandbox)
Jul 26 00:48:43 Aqua mobile_storage_proxy[1653] <Error>: 0x3b4c0b88 handle_lookup_image: Entry 2 of 4 does not have a disk image type
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: Jul 26 00:48:44  SecTrustEvaluate  [leaf AnchorTrusted]
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/.TrustCache
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/Applications
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/Applications/MobileReplayer.app
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/Applications/MobileReplayer.app/_CodeSignature
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/Applications/MobileReplayer.app/_CodeSignature/CodeResources
------------------lots of these-----------------------
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/usr/lib/libXcodeDebuggerSupport.dylib
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/usr/lib
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/usr/libexec
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/usr/libexec/gputoolsd
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/usr/libexec/vpnagent
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/usr/libexec
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 verify_dimage_mount_path: Mount Path is NOT empty: /Developer/usr
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 verify_dimage_mount_path: /Developer is not empty
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 perform_disk_image_mount: Could not verify the disk image mount path
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 handle_mount_disk_image: The disk image failed to verify and mount
Jul 26 00:48:44 Aqua MobileStorageMounter[1654] <Error>: 0x3b4c0b88 handle_mount_disk_image: The disk image could not be verified
Jul 26 00:48:44 Aqua mobile_storage_proxy[1653] <Error>: 0x3b4c0b88 MobileStorageMount: Could not extract mount path from response message
Jul 26 00:48:44 Aqua mobile_storage_proxy[1653] <Error>: 0x3b4c0b88 handle_mount_image: Could not mount the disk image
Jul 26 00:48:44 Aqua mobile_storage_proxy[1653] <Error>: 0x3b4c0b88 main: Could not mount the image
Jul 26 00:48:44 Aqua mobile_installation_proxy[1656] <Error>: 0x3b4c0b88 MobileInstallationSlowLookupBreak: MobileInstallationBrowse was called without specifying an options dictionary containing kLookupReturnAttributesKey. This usage is inefficient and may cause performance problems. Break on MobileInstallationSlowLookupBreak to debug.
Jul 26 00:48:44 Aqua mobile_installation_proxy[1656] <Error>: 0x3b4c0b88 MobileInstallationSlowLookupBreak: Existing options dictionary: <CFBasicHash 0x1dd84380 [0x39b7c100]>{type = mutable dict, count = 1,
entries =>
0 : <CFString 0x5d1a0 [0x39b7c100]>{contents = "RequestProxiedFor"} = <CFString 0x1dd844e0 [0x39b7c100]>{contents = "mtouch"}
}
Jul 26 00:48:45 Aqua com.apple.debugserver-199[1657] <Warning>: debugserver-199 for armv7.
Jul 26 00:48:45 Aqua kernel[0] <Debug>: lockbot[1650] Builtin profile: debugserver (sandbox)
Jul 26 00:48:45 Aqua com.apple.debugserver-199[1657] <Warning>: Connecting to com.apple.debugserver service...
Jul 26 00:48:46 Aqua mobile_installation_proxy[1659] <Error>: 0x3b4c0b88 MobileInstallationSlowLookupBreak: MobileInstallationBrowse was called without specifying an options dictionary containing kLookupReturnAttributesKey. This usage is inefficient and may cause performance problems. Break on MobileInstallationSlowLookupBreak to debug.
Jul 26 00:48:46 Aqua mobile_installation_proxy[1659] <Error>: 0x3b4c0b88 MobileInstallationSlowLookupBreak: Existing options dictionary: <CFBasicHash 0x1fd55d60 [0x39b7c100]>{type = mutable dict, count = 1,
entries =>
0 : <CFString 0xce1a0 [0x39b7c100]>{contents = "RequestProxiedFor"} = <CFString 0x1fd55ec0 [0x39b7c100]>{contents = "mtouch"}
}
Jul 26 00:48:46 Aqua com.apple.debugserver-199[1660] <Warning>: debugserver-199 for armv7.
Jul 26 00:48:46 Aqua com.apple.debugserver-199[1660] <Warning>: Connecting to com.apple.debugserver service...
Jul 26 00:48:46 Aqua com.apple.debugserver-199[1660] <Warning>: Got a connection, waiting for process information for launching or attaching.
Jul 26 00:48:46 Aqua com.apple.launchd[1] (UIKitApplication:com.xamarin.samples.taskyios[0xba6][1661]) <Warning>: (UIKitApplication:com.xamarin.samples.taskyios[0xba6]) Spawned and waiting for the debugger to attach before continuing...
Jul 26 00:48:46 Aqua profiled[1644] <Notice>: (Note ) profiled: Idled.
Jul 26 00:48:46 Aqua profiled[1644] <Notice>: (Note ) profiled: Service stopping.
Jul 26 00:48:46 Aqua amfid[1662] <Error>: Jul 26 00:48:46  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
Jul 26 00:48:46 Aqua com.apple.debugserver-199[1660] <Warning>: Got a connection, waiting for debugger instructions.
Jul 26 00:48:46 Aqua com.apple.debugserver-199[1660] <Warning>: 1 +0.000000 sec [067c/0303]: error: ::ptrace (request = PT_THUPDATE, pid = 0x067d, tid = 0x2403, signal = -1) err = Invalid argument (0x00000016)
Jul 26 00:48:46 Aqua kernel[0] <Debug>: lockbot[1650] Builtin profile: debugserver (sandbox)
Jul 26 00:48:46 Aqua kernel[0] <Debug>: launchd[1661] Builtin profile: container (sandbox)
Jul 26 00:48:46 Aqua kernel[0] <Debug>: launchd[1661] Container: /private/var/mobile/Applications/453CA1E9-C1AC-45EE-8D19-8D2A1804A3AA (sandbox)
Jul 26 00:48:46 Aqua com.apple.debugserver-199[1660] <Warning>: 2 +0.006683 sec [067c/1303]: error: ::read ( 5, 0x2fe809fc, 18446744069414585344 ) => -1 err = Bad file descriptor (0x00000009)
Jul 26 00:48:46 Aqua com.apple.debugserver-199[1657] <Warning>: 1 +0.000000 sec [0679/0303]: error: ::read ( 5, 0x2fda1ebc, 1024 ) => 0 err = Bad file descriptor (0x00000009)
Jul 26 00:48:46 Aqua mobile_installation_proxy[1658] <Error>: main: Could not receive request from host.
Jul 26 00:48:46 Aqua mobile_installation_proxy[1655] <Error>: main: Could not receive request from host.
Jul 26 00:48:53 Aqua assistantd[1663] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
Comment 28 PJ 2013-07-29 12:10:50 UTC
Not a duplicate if it is reproduced with a single device attached.
Comment 31 Rolf Bjarne Kvinge [MSFT] 2013-08-01 06:50:52 UTC
Kristin/Alex: can you verify that the MonoTouch.Debugger.Port value in ~/Library/Preferences/XamarinStudio-4.0/MonoDevelopProperties.xml is set to 10000:

   <Property key="MonoTouch.Debugger.Port" value="10000" />
Comment 32 Kristin 2013-08-01 20:45:24 UTC
Confirmed it is 10000
Comment 33 Rolf Bjarne Kvinge [MSFT] 2013-08-02 08:08:17 UTC
Kristin, the logs from comment 27 did not contain the information I wanted, there should be several "MonoTouch: ..." lines) Can you verify that you added "-v -v -v" to the correct project configuration (and that you're using a Debug configuration)?
Comment 34 PJ 2013-11-19 17:04:32 UTC
This bug has been in the NEEDINFO state with no changes for the last 90 days. Can we put this back into the NEW or CONFIRMED state, or are we still awaiting response?

If there is no change in the status of this bug over the next two weeks, this bug will be marked as NORESPONSE.
Comment 35 Alek Slater 2013-11-20 00:13:11 UTC
This is certainly a lot better for me, at least it now only happens on the 6.1 simulator, but never on the 7.0 simulator, or device.

And Rolf, sorry I didn't reply before, I thought perhaps you were referring to another person, I realise now Alex == me ;D

Here's the output:
</MonoDevelopProperties>skela@skelimac:~/Library/Preferences/XamarinStudio-4.0$ cat MonoDevelopProperties.xml | grep MonoTouch.Debugger.Port
  <Property key="MonoTouch.Debugger.Port" value="10000" />
Comment 36 Rolf Bjarne Kvinge [MSFT] 2013-11-20 05:54:49 UTC
Alex, can you add "-v -v -v -v --nofastsim" to the additional mtouch arguments in the project's iOS Build options for the simulator configuration you're using, and attach the output written to the Application Output? You should get several "MonoTouch: ..." lines indicating what happens (and what goes wrong) when the debuggee tries to connect to the debugger.
Comment 37 Alek Slater 2013-11-22 05:43:30 UTC
Rolf, sorry for the delay, I've been completely unable to reproduce this, so I don't think there is any value in the stuff you are asking about.
Comment 38 Alek Slater 2013-11-22 05:44:04 UTC
I should add, I can't reproduce it after I found a fix for bug 15264.
Comment 39 Rolf Bjarne Kvinge [MSFT] 2013-11-22 06:42:00 UTC
Closing this then, thanks for looking at it again,¡.
Comment 40 Alek Slater 2013-11-22 06:44:28 UTC
Ingen problem Rolf.
Comment 41 Mohit Kheterpal 2014-11-27 10:32:53 UTC
As per comment 37 and comment 38, this issue is resolved now. 

Hence closing this issue as marking it as Verified.

Thanks
Comment 42 Jeffrey Stedfast 2016-04-26 14:50:11 UTC
It turns out the issue was that the MtouchArch value for the iPhoneSimulator target was ARMv7 instead of i386 or x86_64. Changing it to a valid iPhoneSimulator architecture resolved the issue.

I've added logic to the .csproj saving code to make sure that these values are valid and to fix them if not.
Comment 43 mpanderson06 2017-06-09 16:18:40 UTC
This bug doesn't seem to be fixed even with the latest Visual Studio Community (7.0.1 build 24)