Bug 36509 - inspector for visual studio : no buttons
Summary: inspector for visual studio : no buttons
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Inspector Integration ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: inspectordev-discuss
URL:
Depends on:
Blocks:
 
Reported: 2015-12-03 02:11 UTC by frigon
Modified: 2017-09-08 16:48 UTC (History)
4 users (show)

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


Attachments
screenshot (70.33 KB, image/png)
2015-12-03 02:11 UTC, frigon
Details
Logs (71.71 KB, text/plain)
2015-12-09 00:38 UTC, frigon
Details
Logs (20.87 KB, text/plain)
2015-12-09 00:38 UTC, frigon
Details
screen shot (86.60 KB, image/png)
2015-12-09 01:34 UTC, frigon
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 FIXED

Description frigon 2015-12-03 02:11:08 UTC
Created attachment 14093 [details]
screenshot

i'm on the alpha channel and running an android app in debug mode.  and follwoing the instructions:

Download and install the Xamarin Inspector for Windows (or download for Mac).
Open any supported app project in Xamarin Studio or Visual Studio.
Run your app in debug mode.
Click the "Inspect" button in the IDE toolbar (in Visual Studio, the "Inspect current app..." menu item is also available from the "Tools" menu).

There is NO Inspect current app in Visual Studio 2015.
Comment 1 Dan Rigby 2015-12-08 04:03:15 UTC
I'm seeing this behavior as well (inspector button is missing) on the current stable channel release of Xamarin.VS.

---------------------------------------------------------------
Microsoft Visual Studio Community 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Community

Xamarin   4.0.0.1712 (cdc0365)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   6.0.0.35 (d300845)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   9.2.1.55 (edf4e56)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 2 Sandy Armstrong [MSFT] 2015-12-08 14:25:30 UTC
If you go to "Tools -> Extensions and Updates", is Xamarin Inspector listed?

If not, install did not complete, possibly due to using Community instead of Pro.

If it is listed, please attach the logs for the VS extension: https://developer.xamarin.com/guides/cross-platform/inspector/#Reporting_Bugs
Comment 3 Dan Rigby 2015-12-08 14:40:52 UTC
Inspector is not listed in the VS extensions list or in the VS about dialog.

No inspector folder located under "%LOCALAPPDATA%\Xamarin\Logs" either.
Comment 4 frigon 2015-12-08 16:28:38 UTC
Yes I am using VS 2015 Community. Is that not supported?
Comment 5 Sandy Armstrong [MSFT] 2015-12-08 16:57:46 UTC
We currently require Professional, but this can probably be changed. I'll look into it.
Comment 6 Sandy Armstrong [MSFT] 2015-12-08 18:51:15 UTC
Until an updated installer is released, you can cause the extension to be installed for Community Edition by doing the following:

1. Install Xamarin Inspector
2. Navigate to "C:\Program Files (x86)\Xamarin\Inspector\VisualStudioExtension"
3. Run Xamarin.Inspector.VS.vsix

You should be prompted to add the extension to any Community Edition of VS you have installed.

Please let me know if you have any issues with this.
Comment 7 Dan Rigby 2015-12-08 20:05:58 UTC
This workaround was successful for me. Thanks.
Comment 8 frigon 2015-12-09 00:38:25 UTC
Created attachment 14194 [details]
Logs
Comment 9 frigon 2015-12-09 00:38:46 UTC
Created attachment 14195 [details]
Logs
Comment 10 frigon 2015-12-09 00:39:42 UTC
Didn't work for me.  the vs extension did install but theres still now button anywhere for the inspector.
Comment 11 Sandy Armstrong [MSFT] 2015-12-09 01:20:15 UTC
Does Tools -> Inspect Current App... exist for you?

If so, you may just need to add the Inspector toolbar button via the usual VS toolbar customization menu.

Also, you need to be debugging in XAP or VS Android Emulator. You must have linking disabled in debug mode. You must target Android 4.0.3 or later. You must have fastdev enabled.  See https://developer.xamarin.com/guides/cross-platform/inspector/#Supported_App_Platforms .

Also, please note that the Inspector extension is separate from the main Xamarin extension, and has its own log file. It should be named something like:

%LOCALAPPDATA%\Xamarin\Logs\{VS version}\Inspector {date}.log
Comment 12 frigon 2015-12-09 01:34:16 UTC
Created attachment 14196 [details]
screen shot

able to get the inspector icon on the toolbar but its disabled.  Also there is no Tools --> Inspect Current app menu item.
Comment 13 frigon 2015-12-09 01:35:49 UTC
is there a certain port that needs to be open on the remote machine or firewall?
Comment 14 Sandy Armstrong [MSFT] 2015-12-09 01:48:02 UTC
You should not need to open any ports.

What remote machine do you mean? If you are debugging in XAP or VS Android Emulator this should all be happening on the host.

Can you attach the .csproj of your startup project? Perhaps I can figure out what is causing the extension to think your project is not inspectable.

In an upcoming release, it will be easier to understand why an app can't be inspected. This currently exists for XS but not VS.
Comment 15 frigon 2015-12-09 02:02:37 UTC
I'm building an IOS app on a remote mac with visual studio.
Comment 16 Sandy Armstrong [MSFT] 2015-12-09 02:36:28 UTC
I'm sorry, for some reason I thought you'd said you were testing with an Android app.

As covered in the documentation, iOS inspection is not supported on Windows at this time.