iosionic-frameworkvisual-studio-cordovataco

Why is Visual Studio TACO unable to find the app I am trying to debug?


I am using visual studio running in parallels on a Mac. The Mac functions as my build server for iOS. I am trying to get debugging working from visual studio for both the simulator (iPad Air iOS 9.3) and an actual device (an actual iPad Air). For now, it may be helpful to just focus on the simulator first.

When I try to launch to a simulator (iPad Air) from visual studio, or to an actual device my application launches on the device or simulator before visual studio appears to hang for a few moments, ultimately reporting the following error message:

We were unable to find the app you're trying to debug. Check that the >device is connected, awake, and unlocked. Also, make sure it has Web >Inspector enabled.

The device is connected. In the case of the simulator there is no device to connect.

The device is awake and unlocked. In the case of the simulator there is nothing to awaken or unlock. The application launches while visual studio is still debugging just before an error message is returned.

I have checked and double checked to see that web inspector is enabled on both the device and inside safari on the mac. I am able to run the build from XCODE and debug through Safari.

It seems unusual that the application actually opens in the simulator before visual studio returns with the error that it is unable to find the app. If visual studio is unable to find the app then why did it launch?

I will be most grateful for any assistance.

Environment [Updated]

I am using a MacBook Pro running Windows 10 in Parallels.

Windows Configuration

MacBook Pro Configuration

Update 1: I have installed visual studio update 2 and still get the same error message. I appreciate the suggestion though!

Update 2: Thank you for the suggestion. I edited the config, changed the timeout settings and restarted the build server as suggested. The error attaching to an actual device has changed into a warning with the same result. The simulator maintains the same error.

Now the warning reads:

Timed out launching the app. Check your network connection to the mac and try >again. If you are launching to a device, make sure you have Web Inspector >enabled on it.

I do have web inspector enabled. It does not seem visual studio is waiting the full minute before coming back with an error or warning. Furthermore, the visual studio environment appears to hang (not responding) while it is attempting to attach to the device or simulator.

I have tried on multiple networks as well and get the same results.

Is there any additional information I may provide that may be of assistance?

Update 3:

Any other suggestions, or additional information I may provide? I am really stumped here. Fortunately this is not a showstopper as I am able to do some debugging in safari when deployed to the device but it is frustrating.

Is it typical for visual studio to appear to hang when trying to attach to the device to debug?

I also do not believe visual studio is waiting the full duration of the timeout settings that have been configured.

I have updated every dependency I am able to think of and made sure the cordova versions match on ios and windows. I am stumped here...


Solution

  • I increased the amount of memory available to the Windows 10 VM from 4GB to 5GB and the debugger is now attaching as expected without error.

    I am posting this in the event it is helpful to someone else.