Filter debug console output in VS code? - flutter

Is this feature still not created? I am getting bunch of useless info (e.g. when I test google map I get message every few seconds) and it is very anoying. Android studio has this for standard apps development, not sure about flutter. Do others have problem with this and how do you solve it?

Edit: There is now a filter in VS Code - see comments on this answer.
There is not currently any feature to filter the output in the debug console. It's not expected to fill up how you're describing, though a similar issue has been raised about ads here:
https://github.com/Dart-Code/Dart-Code/issues/1980
I haven't yet managed to figure out why there is so much output - Flutter is filtering the output that's sent to VS Code and the messages in that issue don't seem like they should match the filter. Subscribe to that issue for updates that would probably solve this issue too.

In addition of the 1.49 filter, another interesting Debug console feature is comins with VSCode 1.52 (Nov. 2020)
Debug Console: collapse identical lines
Debug console now collapses identical output by showing the count of how many times it occurred.
This feature should make it much easier to make sense of very repetitive program output.

Related

Variables panel not showing when debugging any language in VSCode

I used Python with VSCode for the first time in a while. When I went to debug the script I'd written, I couldn't see any variables in the debug panel. It's not just that none are showing up - there's not even a section where they would be appearing - please see the screenshots below.
When I right click on the three dots at the top of the debug panel, I can see "Watch", "Call Stack", and "Breakpoints", with ticks next to them, but no "Variables" option.
I swear I used to be able to see variables, and everything I'm seeing online is saying that I should be able to, but they just don't seem to be there. At first I thought it was just Python, but I've just tried to debug a simple C program and the same thing happens.
Besides this issue, the debugger seems to work just fine.
What I'm seeing:
What I'm supposed to be seeing, and what I used to be able to see:
Any information would be really helpful, it must be something daft I'm missing.
To clarify, I've tried a fresh VSCode install, which did not fix the issue.
Solution moved from #DCoxshall's question post.
Just did [a reinstall] and the issue disappeared. If anyone knows what caused it I'd still be interested in information, although the problem is now gone.

Unity framework for SwiftUI "Oddly Stepping" error in iOS 16.1

I am using Unity as a library for SwiftUI quite a while now. However when updating to the newest iOS version (16.1) it stopped working. Compiling runs without a problem but during runtime I get an error when Unity is starting:
in:
I even started a completely new project with Unity included to SwiftUI and get the same error. As this is some kind of assembler code and I certainly do not know how to read it I don't really know where I have to start searching.
In the console I get: "warning: UnityFramework was compiled with optimization - stepping may behave oddly; variables may not be available." I tried several ways to turn off optimization as described in related questions which did not work. When unchecking "Debug" in the scheme options the project starts normally
A similar thing happened to me. I'm not entirely sure if it's the same problem but in the console, I got a message saying UnityFramework is running optimized and may behave oddly. Unfortunately, I've tried a couple of ways to disable optimization but I've yet to find a solution.
For now, I'm able to bypass this error by disabling the debugger entirely. In order to do this, you have to go to Product -> Scheme -> Edit Scheme and uncheck debug executable.
I'm not sure if this will work for you but I figured it'd be worth a shot!

Flutter fix not givving suggestions for quick fix deprecated methods/parameters

According to the documentation on the new Flutter 2
(https://flutter.dev/docs/development/tools/flutter-fix), whenever a deprecated function is detected it should present an error and a quick fix.
I got the errors, but the quick fix isn't show, only the option to ignore hint.
I'm using vscode, already tryed to use vscode insiders, switch to flutter channel dev (Flutter 2.1), android studio is the same...
Also, when I run "dart fix --dry-run" no warnings are shown:
Computing fixes in project_test (dry run)...
Nothing to fix!
flutter fix is still an early experiment, and can only "fix" things for which it has a before/after mapping for analyzer-reported issues. It will very likely get better over time. Be sure you search the issues list and star any similar issues, or write one of your own so the team knows it's important.
It looks like its a weird issue with dart analyser.
In this particular case only happens if overflow is the only argument and there is a trailing comma.
https://github.com/dart-lang/sdk/issues/45242
I couldn't make it work with other deprecated objects like FlatButton and RaisedButton,
but as Randal Schwartz said flutter fix is still an early experiment

VS Code Debug Console Double Spacing

As the title says, the debug console in VS Code is double-spacing for me. I'm using the OSX edition. Seems to work fine for others from what I've seen. Have tried it with multiple programs and it always double spaces.
I can't seem to find any setting to change this behaviour. Anyone able to help?
Thanks.
JT
After searching and testing I came to github where I filed a bug for this. It seems that it was known already under a different issue ID already, see https://github.com/Microsoft/vscode/issues/17526 for details.

Exclude ReSharper error for "Resource not found" inside Views

I have an MVC2 application and use ReSharper 6.1 - I've heavily customised the Code Inspection Severity and edited what it decides to show as errors, warnings, suggestions and hints, but I cannot seem to stop it from telling me that a specific resource is missing when utilising a HTMLHelper.
So, for instance:
<img src="<%:Url.Content("~/Resources/Image12345.jpg")%>" />
I get an error on every line similar to the above telling me that the path above does not exist - which at design time it does not, but during the build process all of these views are XCOPY'd to a location which contains all of the resources, such as the images, so at the point of running the application all of this path resolution is correct. Because of working in a team of people, some of which are new to ReSharper, I wanted to exclude this error from appearing as it may cause colleagues of mine to start fiddling with something that isn't broken.
ReSharper obviously doesn't know that this isn't an issue and it has no way of knowing which is why I want to turn off this specific bit of analysis. I've found on the whole that ReSharper is massively customizable and in version 6.1 under Inspection Severity there are some new MVC options, which have proved useful - but I can see no way of turning off the inspection for this.
Anybody have any ideas?
There are few options, press ALT+ENTER.
Suppress inspection "Path Error" with comment. You can suppress whole block of code, not only each of tag.
Suppress inspection "Path Error" at all at whole project.
There is new feature of 6.1 - path mapping, but it seems broken in conjunction with MVC.
Set to ignore that specific error by:
Open Soultion Errors Window by ReSharper->Windows->Soultion Errors Window.
Right-click annoying error and select Ignore Error.
See answer for another error for more explanation.
Well - It seems that this particular type of inspection is not currently catered for. I'll see if I can request it with JetBrains and hopefully more granular MVC inspection will be included in the future.
Cheers guys