Breakpoints not being hit in Visual Studio 2022 for Mac - c#

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.

Related

When debugging in Xamarin, it does not stop at breakpoints

I am developing an app using a combination of Visual Studio 2022 Community, Xamarin.Forms and Android.
In debug mode, I am placing breakpoints, but they do not stop.
Is there something I need to configure?
Start Visual Studio 2022 on Windows 10 and Windows 11.
Create a Xamarin.Forms application.
Launch debugging.
This project was created in Visual Studio 2019.
Visual Studio 2019 can stop at breakpoints when debugging.
There was no "Use Shared Runtime" item in the Android Options in Visual Studio 2022 Communitey.
At first, you can check the official ducument about the issue.
Official document: https://learn.microsoft.com/en-us/visualstudio/debugger/troubleshooting-breakpoints?view=vs-2022
And then, if the issue is still here, you can try to enable the Use Fast Deployment. If you need more information, please check the following links:
Similar issue on the Github: https://github.com/xamarin/xamarin-android/issues/6480
Similar issue in the Visual Studio Community:https://developercommunity.visualstudio.com/t/Breakpoint-not-hit-debugging-Xamarin-And/1561025
"Use Fast Deployment" helps

GeckoFx 45 running not connected to Visual Studio

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/

Visual Studio crashes when launching SharePoint add in

My visual Studio 2017 community keeps freezing and i get the error message not responding when i deploy a Provided hosted add in to SharePoint. I can run all other types of projects that i have tried without any problems. I have a newly installed windows with just a few programs on it. I can run a console application to my SharePoint online without any problems. So i guess SharePoint isn't the problem.
What i have tried:
Reinstall windows
Reinstall Visual Studio
Reinstall ISS
Update Visual Studio
Update windows
Disable some debug options (Read online that might help)
And some minor things
I appreciate any help/tips i can get everything is helpful at this point.
i had same problem and i figure out its firefox problem, so when i uninstall firefox, problem solved for me,
may be it help you as well.
Same issue for me, you need to change the default browser from "Start Action" to "Internet Explorer" in the Add-in project properties pane.

I can no longer debug on Xamarin for Visual Studio 2015

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.

Visual Studio 2015 just debug once, then i have to restart VS

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.

Categories

Resources