Bug 24803 - Wifi Debugging not working in Visual Studio
Summary: Wifi Debugging not working in Visual Studio
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Debugger ()
Version: 7.0 (C8)
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-11-25 09:41 UTC by Anubhav Ranjan
Modified: 2017-08-23 21:33 UTC (History)
9 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 Anubhav Ranjan 2014-11-25 09:41:26 UTC
Wifi Debugging used to work in previous versions, although undocumented.
Is it possible to get this working again or was it removed for a particular reason?

##Version Information

Microsoft Visual Studio Ultimate 2013
Version 12.0.31010.00 Update 4 RC
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Ultimate

Architecture and Modeling Tools 06181-004-0449004-02205
Microsoft Architecture and Modeling Tools

UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Team Explorer for Visual Studio 2013 06181-004-0449004-02205
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013 06181-004-0449004-02205
Microsoft Visual Basic 2013

Visual C# 2013 06181-004-0449004-02205
Microsoft Visual C# 2013

Visual C++ 2013 06181-004-0449004-02205
Microsoft Visual C++ 2013

Visual F# 2013 06181-004-0449004-02205
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker 06181-004-0449004-02205
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

ASP.NET<http://ASP.NET>; and Web Tools 12.4.50922.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET<http://ASP.NET>; web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET<http://ASP.NET>; web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Websites
Web publishing: Extensions for publishing ASP.NET<http://ASP.NET>; web projects to hosting providers, on-premises servers, or Microsoft Azure

ASP.NET<http://ASP.NET>; Web Frameworks and Tools 2012.2 4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET<http://ASP.NET>; Web Frameworks and Tools 2013 5.2.20926.0
For additional information, visit http://www.asp.net/

Common Azure Tools 1.3
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GenerateUnitTest 1.0
Generates unit test code for methods in classes under test.

GruntLauncher 1.1
Right click extension to launch Grunt commands

Microsoft Azure Mobile Services Tools 1.3
Microsoft Azure Mobile Services Tools

Microsoft Team Foundation Server 2013 Power Tools 12.0
Power Tools that extend the Team Foundation Server integration with Visual Studio.

Microsoft Visual Studio Process Editor 1.0
Process Editor for Microsoft Visual Studio Team Foundation Server

NuGet Package Manager 2.8.50926.663
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PackageBuilder 1.0
Capability to launch the Package Builder Application from within Visual Studio

PowerShell Tools 1.3
Provides file classification services using PowerShell

PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SlowCheetah - XML config transforms 1.0
This package enables you to transform your app.config or any other XML file based on the build configuration. It also adds additional tooling to help you create XML transforms.

SQL Server Data Tools 12.0.40928.0
Microsoft SQL Server Data Tools

TaskRunnerExplorer 0.7
VS Grunt integration prototype.

VSToVmsAddin 1.0
Information about my package

Web Essentials 2013 2.3
Adds many useful features to Visual Studio for web developers.

Windows Phone 8.1 SDK Integration 1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Xamarin 3.7.248.0 (8ca7d11db8a6f874c6cd2de6d9ca0f511867ce91)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android 4.18.1.3 (5474129af31e9d3a86cb7482c7c5c7a30ad315f1)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.Forms Intellisense 1.0
Provides intellisense for Xamarin.Forms in the XML editor.

Xamarin.iOS 8.4.0.0 (209abebbd8f1a292d042420edb45fa5fbd3f017b)
Visual Studio extension to enable development for Xamarin.iOS.



And from Xamarin Studio on the Mac:
=== Xamarin Studio ===

Version 5.5.4 (build 15)
Installation UUID: d130074e-9e74-49e5-a665-eb628ca5948a
Runtime:
Mono 3.10.0 ((detached/92c4884)
GTK+ 2.24.23 (Raleigh theme)

Package version: 310000031

=== Apple Developer Tools ===

Xcode 6.1 (6604)
Build 6A1052d

=== Xamarin.Mac ===

Version:

=== Xamarin.iOS ===

Version: 8.4.0.43 (Business Edition)
Hash: 840a925
Branch:
Build date: 2014-11-16 21:03:22-0500

=== Xamarin.Android ===

Not Installed

=== Build Information ===

Release ID: 505040015
Git revision: f93940a35458a18052f1a25e106e62ca970d9c40
Build date: 2014-11-19 15:32:41-05
Xamarin addins: dc23cbd91a3a0e1d326328e1229e86c942a49ec8

=== Operating System ===

Mac OS X 10.10.1
Darwin am-13330.local 14.0.0 Darwin Kernel Version 14.0.0
Fri Sep 19 00:26:44 PDT 2014
root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 1 jonshuler 2016-08-07 21:17:24 UTC
I am on Windows 10 using VS 2015 & Xamarin for Android.  Here is the error from VS:

C:\Program Files (x86)\Android\android-sdk\build-tools\23.0.1\zipalign.exe 4 "E:\code\WebcamTest\WebcamUsbApp\bin\Debug\WebcamUsbApp.WebcamUsbApp-Signed-Unaligned.apk" "bin\Debug\WebcamUsbApp.WebcamUsbApp-Signed.apk" 
:Deployment failed
Mono.AndroidTools.AdbException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.IO.IOException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.EndSend(IAsyncResult asyncResult)
at System.Net.Sockets.NetworkStream.EndWrite(IAsyncResult asyncResult)

I used the instructions at https://developer.xamarin.com/guides/android/getting_started/installation/set_up_device_for_development/ to setup my device.

Here is info from VS Help->About
Microsoft Visual Studio Enterprise 2015
Version 14.0.25421.03 Update 3
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Enterprise

Architecture and Modeling Tools   00322-90000-57636-AA351
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Visual Basic 2015   00322-90000-57636-AA351
Microsoft Visual Basic 2015

Visual C# 2015   00322-90000-57636-AA351
Microsoft Visual C# 2015

Visual C++ 2015   00322-90000-57636-AA351
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - ENU   00322-90000-57636-AA351
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   7.1.00719.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

NuGet Package Manager   3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools

TypeScript   1.8.34.0
TypeScript tools for Visual Studio

Visual C++ for Cross Platform Mobile Development (Android)   14.0.25401.00
Visual C++ for Cross Platform Mobile Development (Android)

Visual Studio Tools for Universal Windows Apps   14.0.25420.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.1.2.18 (fcbe082)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   6.1.2.21 (1cf254d)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   9.8.2.22 (f37444a)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 2 Joaquin Jares 2016-12-20 12:30:55 UTC
I don't fully understand the issue, sorry. Wifi debugging is an iOS feature for us, but there's an Android connection in there. What steps where you trying and how did it break? We didn't remove any functionality there (intentionally) but we do have proper support for iOS Wifi debugging now (in Alpha), so that may have changed something in your scenario.
Comment 3 jonshuler 2016-12-20 13:27:41 UTC
Per this Xamarin article you should be able to debug over wifi: https://developer.xamarin.com/guides/android/getting_started/installation/set_up_device_for_development/.

If for Android development debugging over wifi is not supported then the article needs to be updated.

If debugging over wifi is supported for Android development, it does not work and let me know what details you need.
Comment 4 Joaquin Jares 2016-12-21 14:11:53 UTC
Sorry, didn't see the link in your original comment. What device are you trying? It looks from the error like the device is closing the connection, which would mean the app is crashing. Is it? I'll try a repro on my side, but these kinds of bugs are usually very device specific.
Comment 5 jonshuler 2016-12-21 14:59:07 UTC
I am using a NVidia Shield Tablet K1. I did some more investigation and adb over wifi has to be enabled by the device manufacturer. You are probably correct that this is a device issue.
Comment 6 Emanuel 2016-12-22 20:03:32 UTC
Moving to Android, maybe they could provide more info about this issue.
Comment 7 Cody Beyer (MSFT) 2017-08-23 21:33:05 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we believe it no longer affects the current version of Xamarin.Android. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.