Bug 53305 - Inspector button is disabled after selecting "Use Faster Deployment" checkbox
Summary: Inspector button is disabled after selecting "Use Faster Deployment" checkbox
Status: RESOLVED DUPLICATE of bug 51639
Alias: None
Product: Workbooks & Inspector
Classification: Xamarin
Component: Client: Visual Inspector ()
Version: master
Hardware: PC Windows
: Highest blocker
Target Milestone: 15.3
Assignee: xamarininteractive
URL:
Depends on:
Blocks:
 
Reported: 2017-03-14 11:14 UTC by Jacky Waswani
Modified: 2017-05-12 15:03 UTC (History)
5 users (show)

Tags: C9SR0
Is this bug a regression?: No
Last known good build:


Attachments
Xamarin logs (1.32 KB, application/octet-stream)
2017-03-14 11:18 UTC, Jacky Waswani
Details
Logs (1.00 KB, application/octet-stream)
2017-03-30 15:05 UTC, Gaurav Ganorkar
Details
12 May :: IDE Logs (4.89 MB, application/x-zip-compressed)
2017-05-12 11:11 UTC, Mohanish Patil
Details
IDE stack traces (35.48 KB, text/plain)
2017-05-12 15:01 UTC, Mohanish Patil
Details


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:
RESOLVED DUPLICATE of bug 51639

Description Jacky Waswani 2017-03-14 11:14:26 UTC

    
Comment 1 Jacky Waswani 2017-03-14 11:18:08 UTC
Created attachment 20301 [details]
Xamarin logs

Added Xamarin logs of the Execution.
Comment 2 Jacky Waswani 2017-03-14 11:22:51 UTC
Step to reproduce:

1. Create a android singleView app.
2. Deploy the application on android emulator
3. Click on live Inspect button.
4. It gives error: Inspector requires "Fast Assembly deployment " to be enabled for Android Project.
link to screencast : https://www.screencast.com/t/v2VeQucKb0

5. After enabling the check box and exectuing it again , the Button for live inspection is Disabled. 
link to screencast: https://www.screencast.com/t/rGYBopD4P
Comment 3 Jacky Waswani 2017-03-14 13:27:43 UTC
System Environment info:

Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01055

Installed Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA934
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.

LightSwitch for Visual Studio 2015   00322-80000-00000-AA934
Microsoft LightSwitch for Visual Studio 2015

Visual Basic 2015   00322-80000-00000-AA934
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA934
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA934
Microsoft Visual C++ 2015

Visual F# 2015   00322-80000-00000-AA934
Microsoft Visual F# 2015

Пакет SDK для Windows Phone 8.0 - RUS   00322-80000-00000-AA934
Пакет SDK для Windows Phone 8.0 - RUS

Application Insights Tools for Visual Studio Package   7.18.00214.2
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/

Clang with Microsoft CodeGen   14.0.25516
Clang with Microsoft CodeGen

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

GitHub.VisualStudio   2.2.0.8
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

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

Merq   1.1.14-alpha (21c13c9)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

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

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

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

Office Developer Tools for Visual Studio 2015 ENU   14.0.23025
Microsoft Office Developer Tools for Visual Studio 2015 ENU

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

Python Tools for Visual Studio   2.2.50113.00
Python Tools for Visual Studio provides IntelliSense, projects, templates, Interactive windows, and other support for Python developers.

Python Tools for Visual Studio - Django Integration   2.2.50113.00
Provides templates and integration for the Django web framework.

Python Tools for Visual Studio - Profiling Support   2.2.50113.00
Profiling support for Python projects.

SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools

TypeScript   1.8.36.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 C++ for Cross Platform Mobile Development (iOS)   14.0.25401.00
Visual C++ for Cross Platform Mobile Development (iOS)

Visual Studio Tools for Apache Cordova   Update 10
Visual Studio Tools for Apache Cordova

Visual Studio Tools for Universal Windows Apps   14.0.25527.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.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   4.3.0.789 (4d2ed3d)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.1.0.43 (3a62f1e)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.4.0.128 (ba11e48)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 4 Sandy Armstrong [MSFT] 2017-03-14 13:35:02 UTC
I have drafted some initial instructions on how to file useful Inspector bugs here: https://gist.github.com/sandyarmstrong/0c0f7c475f10b246da142d92ea2584ab

I'll be moving them into real documentation soon. Please refer to them and add all missing info.

Also, there is a known bug where if you check "Fast Assembly Deployment", and then launch the app without saving the project first, the Inspector extension misreads the project setting. Please ensure you are saving the project after making such changes.
Comment 5 Jacky Waswani 2017-03-16 06:52:13 UTC
I have executed the test again by following the above mentioned steps by @Sandy_Armstrong , It is working as expected.

can you kindly change the status of the defect accordingly.
Comment 6 Sandy Armstrong [MSFT] 2017-03-16 13:06:10 UTC
Thanks Jacky!

*** This bug has been marked as a duplicate of bug 51639 ***
Comment 7 Gaurav Ganorkar 2017-03-30 15:05:35 UTC
Created attachment 21074 [details]
Logs

Bug is retested in the below build config:

•  Windows 10 Pro
•  Microsoft Visual Studio Enterprise 2017 d15rel ->Version 15.1 (26328.55) d15rel PR
•  Xamarin  Version-4.4.0.33(80d9a02)
•  Xamarin  Profiler Version-1.4.0.1
•  Xamarin  Workbooks  Version-1.2 (d15-/0aaeb08)
•  xamarin.android-7.2.0-7  (b16fb82)
•  Xamarin.iOS and Xamarin.Mac SDK -10.8.0.174 (7656cc6)

Actual Result-After enabling Use Fast Deployment(Deploy Mode only) , Live Inspect icon is disabled and it is enabled when Use Fast Deployment option is unchecked. After click on Inspect icon it is prompt an error message as "Inspector requires Fast Assembly Deployment to be enabled for Android projects"
Please refer the attached logs.

Screen cast link-http://www.screencast.com/t/JN3d7I0sehm
Comment 8 Sandy Armstrong [MSFT] 2017-03-30 15:16:39 UTC
Please save the project after making such a change. See comment #4:

"Also, there is a known bug where if you check "Fast Assembly Deployment", and then launch the app without saving the project first, the Inspector extension misreads the project setting. Please ensure you are saving the project after making such changes."

By the way, I moved bug filing instructions to https://developer.xamarin.com/guides/cross-platform/inspector/install/#Reporting_Bugs
Comment 9 Sandy Armstrong [MSFT] 2017-03-30 15:17:44 UTC
Bug #51639 is where we track the saving issue. This bug is still a duplicate. Marking as such again.

*** This bug has been marked as a duplicate of bug 51639 ***
Comment 10 Mohanish Patil 2017-05-12 11:10:50 UTC
Hello @Sandy,

I defer your comments over here. We are able to reproduce this issue after even saving the project.

Steps 
1. Create Android Single View Project
2. Saved the project> Clean and build the solution
3. From Project Properties > Android Options > Verify that "Use Fast Deployment" is checked i.e enable
4. Saved the project again > Run into the emulator with dubg more

Observed : Live debugging option is appears to be disable though "Use Fast Deployment" is checked.

5. Repeate the steps 3 and unchecked the "Use Fast Deployment" option
6. Saved > Build > Run the app into emulator

Observed Result: Live debugging option is appears to be enable but when it get clicked, it dispalyed the error as 

"Inspector required """Fast Assembly Deployment" to be enable for Android project.""



Build info : 15.2

Build info : https://gist.github.com/saurabh-paunikar/559e8a77c9fc401b60f2109c29ee440d

Build Version for workbook : 1.2.2.9000

Xamarin   4.5.0.443 (c871575)
Xamarin.Android   7.3.0.13 (448f54f)
Xamarin.iOS   10.10.0.30 (30b6e87)


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

Note: We are able to reproduce the same issue with new 15.3 Xamarin release in combination of latest Workbook inspector build too
Comment 11 Mohanish Patil 2017-05-12 11:11:49 UTC
Created attachment 22120 [details]
12 May :: IDE Logs
Comment 12 Mohanish Patil 2017-05-12 12:24:34 UTC
Reopening the defect.
Comment 13 Mohanish Patil 2017-05-12 15:01:14 UTC
Debug output logs - 


"InspectorDebugSession(1): HandleTargetEvent: TargetHitBreakpoint
InspectorDebugSession(1): StateChange: EntryPointBreakpointRegistered -> EntryPointBreakpointHit
InspectorDebugSession(1): AgentBridge.InjectAssembly: /storage/sdcard/Android/data/App6.App6/files/.__override__/inspector-temp/Xamarin.Interactive.dll
05-12 20:22:05.634 D/Mono    ( 3880): Assembly Loader probing location: '/storage/sdcard/Android/data/App6.App6/files/.__override__/inspector-temp/Xamarin.Interactive.dll'.
InspectorDebugSession(1): AgentBridge.InjectAssembly: Mono.Debugger.Soft.InvocationException: Exception of type 'Mono.Debugger.Soft.InvocationException' was thrown.
   at Mono.Debugger.Soft.InvocationsAPI.EndInvokeMethodInternalWithResultImpl(IAsyncResult asyncResult)
   at Xamarin.Interactive.IdeSupport.AgentBridge.InjectAssembly(String agentAssemblyPath) in C:\d\lanes\4856\4337172c\source\XamarinVS\External\inspector-ide-integration\Xamarin.Interactive.IdeSupport\AgentBridge.cs:line 55
   at Xamarin.Interactive.IdeSupport.InspectorDebuggerSession.<HandleTargetEvent>b__26_0(Object <p0>) in C:\d\lanes\4856\4337172c\source\XamarinVS\External\inspector-ide-integration\Xamarin.Interactive.IdeSupport\InspectorDebuggerSession.cs:line 242
InspectorDebugSession(1): StateChange: EntryPointBreakpointHit -> Error
InspectorDebugSession(1): Disposed"
Comment 14 Mohanish Patil 2017-05-12 15:01:53 UTC
Created attachment 22129 [details]
IDE stack traces
Comment 15 Sandy Armstrong [MSFT] 2017-05-12 15:03:31 UTC
Remarking this as a dupe of bug #51639.

The issue you are experiencing now is bug #56232.

*** This bug has been marked as a duplicate of bug 51639 ***