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.
Related
So I just started using Visual Studio 2022 on a Mac and I'm having trouble getting my breakpoints to be hit.
I set the breakpoint just as I would if I was using VS for windows but when I run the app in debug mode it is not being hit.
They are by default shown as hollow circles, meaning they might be disabled? But they are shown as enabled when I right-click on them.
Hollow breakpoint image
I've searched everywhere online but can't seem to figure out what I'm doing wrong.
Thank you for your help!
If that doesn't work just make sure you're not in release. You will not get access to all of the tools if that is the case.
by "that" I mean the answer from JFBloom22
I was facing same issue in Visual Studio Mac 2022. Enabling Fast Deployment in android project solved the issue.
I am having a strange issue and am not sure how to figure out what is happening. I am developing an Add-In for Revit to display a web page in the dock panels. I followed the tutorial here for using GeckoFx45 in WPF. Everything works fine while I am debugging with Visual Studio. If I quit debugging and run the same dll disconnected from Visual Studio, GeckoFx45 stops at Xpcom.Initialize("Firefox");
I haven't recompiled, just running without Visual Studio attached and debugging. Since it works while debugging, I'm not sure how to figure out what is wrong.
If it makes a difference, I am using the most recent GeckoFx45 64 bit NuGet. https://www.nuget.org/packages/Geckofx45.64/
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'm a PHP developer, but recently I have to work with Visual Studio in a C# application. I don't know much about C#, just had a few experiences with it, and the problem is when I try to run/debug my code it works only for the first time. If I change ANY piece of code anywhere in the code the project won't launch anymore, all it does when I click "Debug" is open Google Chrome for me and there it hangs awaiting for "localhost" forever... This issue is driving me nuts, I can't program well if I have to restart Visual Studio whenever I change some code.
I have tried a lot of things that I found here and on Google, but nothing helped. I have fully repaired VS 2015, didn't work. Then I reinstalled it and still not working.
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.