Rider EAP And Visual Studio For Mac debug - debugging

i try to debug my web app. When i add break point in gutter for proper line, i receive an error says : The breakpoint cound not yet be bound to valid location. What should i do to fix it?

Rider debugging has been hosed on Mac for a few months now. Team is hard at work at fixing it - but it requires building out their own debugger or something of the such (yowch!)
See progress blog post here: https://blog.jetbrains.com/dotnet/2017/02/23/rider-eap-18-coreclr-debugging-back-windows/

I had this issue when working on an Android Xamarin project.
Problem was that I was changing the file after starting the debug session.
If I leave the file alone the debug breakpoints work fine.
Here's the issue I created:
https://youtrack.jetbrains.com/issue/RIDER-7118

Related

ASP CORE debugging in VS: "adding namespace will prevent the debug session from continuing" error

When the debugging process opens Razor file it is become impossible to make next step (F10, F11) because of VS is blocked by the error "File was modified: Continue or Stop". Also this message appears in the VS Errors list:
Closing of the tab with the "modified" razor file somehow helps - error is gone - and then it is possible to continue debugging.
It seems like VS changes the file by its own, but there is no any sign of this except this message.
Why and where VS adds this 'namespace' ? Knowing this I would add this 'namespace' by myself to my code and then VS will not have a reason to change the code and interrupt debugging.
Seems like it is still open issue: https://github.com/aspnet/Razor/issues/1464
Try only having #addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers in your _ViewImports.cshtml or nothing at all and reproduce to see if it solves your scenario.
I had a _ViewImports.cshtml within one View's folder (Views/Foo), and in it had a single namespace that had been commented out, making the import not needed. Removing this file fixed the problem. Then re-adding the _ViewImports.cshtml, even testing with the same commented out namespace, suddenly couldn't reduplicate the problem. Keep in mind I cleaned the solution, deleted obj / bin, etc, many times over before finding this solution, none of which helped. So ... there is indeed something messed up here. But here was one possible source of the problem: an empty view-import, or empty with a commented out portion.
I had same problem with you. When your app working, you can't import the namespace to your newly opened class. It will be fixed, when you stop your app.
This is, hands down, the most frustrating issue I have with debugging Core apps. I've found that closing all open CSHTML files (and waiting a few seconds for the error to disappear from the Error List window) will fix the issue temporarily, but I usually can't debug in razor in that session any more, and have to at the very least stop and restart the debug session, but more often than not I have to fully restart VS. Just happened to me right now in VS Community 2019 (16.2.2). Haven't updated to 16.2.3 yet, but I'm not holding out hope that they've finally fixed this bug.
You can fix it by stopping or restarting IIS Express attached to Visual Studio. It can be stopped by icon available in the taskbar.
You can fix it by stopping or restarting IIS Express attached to Visual Studio.

Xamarin.iOS 11 Resources are Not Loaded

I recently updated my instance of Visual Studio 2017 to version 15.3.5 and in the process updated Xamarin.iOS to version 11.0.0.0.
Since updating, several of the resources in my project have stopped working. When deploying to a device, the app icon is not displayed (instead blank icon is shown), and Bundle Resources like a custom font file (.tff) is no longer loading. There has been no code changes to the stable branch of our build, but just updating appears to have broken multiple resources.
Has anyone else encountered this? Does the Xamarin team know about this (I'm looking at you Xamarin folks who said to post my questions in SO)?
EDIT:
Here is the guide for updating an app (doesn't appear to apply to the issue I'm seeing): Xamarin Update to iOS11.
Here's a specific example of code that has suddenly stopped working despite no code changes:
UIFont customFont = UIFont.FromName("streamline-24px", (float)this.IconButton.IconSize);
The .tff file is the same, but FromName() yields a null value now.
I figured it out, hopefully this helps anyone with the same configuration that upgrades their Xamarin.Forms or Xamarin.iOS project from Xamarin.iOS release 10 to 11. I was lucky to happen upon it after reading Kevin Mullins answer at Xamarin saying that you should:
Ensure that all of you icon files are in place (either via the info.pst file or an Image asset).
My Info.plist > Visual Assets looked like this (which worked prior to the update)
Selecting Use Asset Catalog and selecting a value resolved the issue.

Autocompletion/colorcoding not working for android xamarin in vs2015

Hello. I'm a beginner building my first android app on visual studio.
When I first created the project, there was colorcoding and autocompletion for android stuff like the TextView, SetContentView, ISharedPreferences in the code.
When I re-opened to keep working on it, all the colorcoding for those were gone, and no auto-completion(suggestions) come up when as I try to type them again.
It's fine when I created a new project. How do I fix this? or what am I doing wrong? the code works fine apart from the issue.
I would suspect possibly a corruption in a .vs.config file.
Here's what FINALLY worked for me: Start -> Run -> (Or Windows Key + R) Then type "devenv.exe /resetuserdata" (no quotes of course)
Look HERE at my previous answer. Understand that you may have to do a little resetting of your environment once this is done. It's not horrible, just an inconvenience. Please let us know if it works for you.

Yii2 app debugging

How do you debug the yii2 app using any IDE(eg. eclipse, netbeans, sublime, aptana, etc...) like debugging in visual studio in which we can put breakpoints? This is much needed, for some errors take days to fix; so any debugging method would be helpful. Thanks in advance!
For the neatbeans (and also for the other IDE) This is possibile if you have properly configurated Xdebug and the Yii2 app if defided correctlty in a netbeans project netbeans.
You see https://xdebug.org/docs/install for xdebug install or
http://wiki.netbeans.org/HowToConfigureXDebug
Once you have installed and confiured xdebug you can run the application in (netbean) debug mode and put breakpoint ... inspecting vars .. trace .. move in the code step by step .. with full debug functionality

How to run ios 4.3 app in ios 4.0

How to run application which is build using ios-sdk-4.3 in ios-sdk-4.0.I set build target but also am getting lots of crash.
Thanks.
I don't know if I understand your question correctly but try following:
Assuming you are using XCode4, double click on your Project
file to open your Project settings (that's the first Item in your Project Navigator).
Selecting the INFO Tab, choose your Deployment Target, for example 4.0.
I can't help you with the crashes but please try to use the debugger to find out which part of your application is causing the issues.
Let me know if that answers your question

Resources