I started some tests using Visual Studio 2015 and Xamarin for iOS. The latest version of Xamarin build server is set up and running on my new Mac Mini, Visual Studio 2015 is updated and running the latest version of Xamarin.
Now, when I compile a standard Universal app, it is done within 3 seconds or so. But when I hit Debug, the server log says it is handling requests, but the simulator doesn't show up, nor any message on the Mac.
After an endless list of:
Request handled in X.XXXms
(usually in steps of approximately 2 seconds)
it stops debugging after a few minutes without any message on the Mac or in Visual Studio.
What is wrong with my debugging? Is it a problem with Visual Studio, the Mac, Xamarin?
The problem was that Visual Studio was set to debug a Device, not the Simulator.
Somewhere in the build log it says:
Waiting for device 'Device' to connect.
This is an stupid mistake obviously, but the fact that there isn't any message, nor a pointer to connect the device correctly or what is actually wrong, makes it very hard to find the problem.
So, instead of Device, set the debug target to the Simulator:
Related
I'm using visual studio 2017, currently i'm developing UWP apps I don't know the exact reason, when i try to run the application it suddenly stops and closes and then restarts again and also some times i get the Microsoft Visual Studio is busy message as a notification and visual studio got stucked. Can any one help me to solve this issues.
I'm working with Visual Studio Community 2015 Update 3 and the Visual Studio Emulator for Android (API Level 19). Everything works fine, but since last Xamarin update I can't deploy to Visual Studio Emulator.
I click on run at visual studio and it deploys the app to the emulator (I cann see it in app drawer), then it starts the app.
But the app closes immediately, and visual studio says at output:
Could not connect to the debugger.
Solutions I tried already (without success):
Enabled Migrate to a physical computer with a different processor version in Hyper-V settings
Disabled Use Fast Deployment in project settings
EDIT: On my real phone I can debug this app.
EDIT2: Here's the logcat output
I had the same problem and it's really frustrating!
I had the problem for both Visual Studio 2019 and Visual Studio 2022.
I tried literally every solution on the web, and none of these worked for me:
updating everything in Visual Studio to the latest version
updating every Android SDK and component
sending various adb commands via the ADB console (like: adb -s 10.0.2.2:5554 root)
#TienQuang solution in this post
restarting multiple times Visual Studio and Windows
deleting and recreating Android emulators images
I was really out of solutions to try, and then...I simply reset my emulator proxy configuration (the always worked fine) switching to the "default Android Studio HTTP proxy settings", and now I can debug my application!
I've had this problem before. My problem was that the emulator was old and could not load things properly and was really slow. I suggest upgrading to a different emulator or just using your phone for debugging. If you want, you could try running it in release and see if it runs then. If not create a new emulator from the AVD Manager.
I recently had to wipe my entire PC due to getting too many Blue Screens, so after that I went through the process of reinstalling all my software development tools, in this case Visual Studio Community 2015 and Xamarin for Android.
It went smoothly enough but I now have a new problem, when I debug the Project I am working on, breakpoints never get hit. I tried cleaning the solution, restarting the PC/Android tablet, reinstalling Xamarin and changing devices, but my breakpoints never get hit when I'm debugging my app, and its pretty annoying to say the least.
Before I did the hard reset on my PC, everything worked perfectly.
I would switch to Xamarin Studio but it seems since Microsoft took over Xamarin they have dropped the Windows version of Xamarin studio, so I am now stuck with Visual Studio with a broken debugger.
I think this is a Xamarin related issue because when I use Visual Studio to work on web applications, the debugger works as expected.
Is there anyone who has the latest version of Xamarin for Visual Studio experienced the same problem? and if so, what did you do to get the debugger working again?
thank you, I'll be happy to provide technical/build information if you need it.
Have a weird behavior in Visual Studio 2013 Community Edition Update 5 when I try to deploy an application on my Windows Embedded Compact 2013 device. In my solution I have a C++ and a C# project, both for my WinCE device. When I press BUILD -> "Deploy myApp" it works for the C# application perfectly but for the C++ project VS 2013 just hangs. In the left bottom corner I see "Deploy started..." and that's it. Even after 15 minutes nothing changed, no error message. I have to close VS with the Task Manager.
On another computer I can deploy both projects. Same configuration, add-ins and plugins.
Deployment is over TCP/IP.
What I tried so far:
Repair VS 2013
Reinstall VS 2013 with Update 4
Reinstall WinCE SDK
Anybody any idea where I should look or what I should test?
This happens also on some of my machines.
The only solution I found is to set the target IP address into the project properties (in the debugging tab) before download.
In this way Visual Studio will not ask for the IP and everything* works.
*everything debugging related, at least :)
This is happening really often to me now, when I try to deploy an Xamarin.Forms (1.4) to my Android device through Visual Studio 2015 it freezes at this point:
I have to end the Visual Studio process. If I restart VS and run again it works. After 2-3 times it starts to freeze again and I have to restart again.
Why is this happening? Any ideas?
Turns out I was using the Design DLLs provided by Xamarin staff here and they were the culprit causing the issues hanging Visual Studio.
Unfortunately I had to remove them to stop the crashes.