-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS Code does NOT print output in debug console any more on Macbook M1 #3536
Comments
It might be tricky to track this down without a repro if it does not occur in a newly created app. A few things to test:
I don't know of anything that changed around the date you gave. I presume you're on Flutter stable, and had already upgraded to the latest version of Dart-Code at the start of August? |
That's exactly what I'm afraid that it'll be hard to fix :(
As far as I know, I'm on the latest updates everywhere. I had attached |
I also tried to restart my computer a few times as well as I reinstalled the whole VC Code. Nothing has helped. |
If it doesn't reproduce in a small project, I don't really have any way to debug this. There must be something specific to your project that it's probably unlikely I would accidentally stumble upon. One thing worth doing just to eliminate anything going on the debug adapter/VS Code site, is to hit your first breakpoint, then run the Dart: Capture Debugging Logs command from the VS Code command palette, then step over the prints, and then click Cancel on the logging notification to stop logging and open the log. If the second print shows up anywhere in those logs, it might be easier to troubleshoot. If not, it's really going to need a repro. |
Big thanks for your effort to help @DanTup. Fortunatelly, it shows the second print in the logs.
Debug Logs
|
Thanks for the log! This actually shows the raw DAP event being sent to VS Code:
That means this could be a VS Code issue. Could you file a bug explaining the output is missing but the debug adapter appears to be sending the correct output event (you can include the line I've pasted above) at https://github.com/microsoft/vscode? You can CC me so I can help out if required so it doesn't just get closed as being the extensions fault. Thanks! |
It's still NOT working correctly. Adding my Logs[✓] Flutter (Channel stable, 2.2.3, on macOS 11.5.2 20G95 darwin-arm, locale en-US) • Flutter version 2.2.3 at /Users/tomasbaran/code/flutter • Framework revision f4abaa0735 (10 weeks ago), 2021-07-01 12:46:11 -0700 • Engine revision 241c87ad80 • Dart version 2.13.4[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 2020.3) [✓] VS Code (version 1.60.0) [✓] Connected device (2 available) • No issues found! |
I found the issue. I'm so sorry about this stupid mistake. I was filtering out a text and forgot about it that's why it didn't show other print outs. I'm ashamed :S |
No worries - I think I've done that too (yet failed to remember about that while responding to this!). Glad you figured it out anyway! Perhaps VS Code should make it clearer when the list is filtered! 🤔 |
It's a good idea, @DanTup It's true that it's not very clear. For instance, making the |
Yep, I'd agree - perhaps it's worth filing an issue in the VS Code tracker (feel free to post the link back here for others that might hit this - I'll certainly give it a 👍 !) |
I am having this log !! PLEASE REVIEW THIS LOG FOR SENSITIVE INFORMATION BEFORE SHARING !! Dart Code extension: 3.29.0 App: Visual Studio Code Workspace type: Flutter Dart SDK: HTTP_PROXY: undefined Logging Categories: Sat Feb 05 2022 [00:15:20 GMT+0530 (India Standard Time)] Log file started |
@shivansh-magnus please file a new issue with a clear description of the problem you're seeing (including a screenshot and/or code sample if appropriate). |
same situation hahhahahah thank you for reminder |
where i can see the filtering options? i have the same problem :s |
@IsaiVazqez see the screenshot at #3536 (comment) - the filter is the top right corner of that screenshot (an input box and a label describing how many matches) |
If you have this problem and it's not from filters, disable all extensions, enable Flutter extension first, then others. I've had the same issue after I fully uninstalled Vscode then installed it, and synced extensions, the print didn't appeared in console, only errors/warnings. After disabling all extensions and enabling them again, Flutter first, it worked! |
@Far-Se I'm surprised by this, as I'm not aware of any APIs that would allow other extensions to interfere with the Debug Console output. If you happen to see this again, please do file a new issue with details of exactly what you're seeing (and ideally screenshots) and maybe we can get to the bottom of what was happening. Thanks! |
chrome_ELdVBRiCoi.mp4@DanTup I have this video that shows the issue, I am pressing that button that triggers a print and it wont show up, but throw appears, or any other code/runtime error appears as well, just print won't show. I have no idea what got tangled up when I've reinstalled and synced all the extensions. |
@Far-Se thanks - I presume this was taken before, and you can no longer reproduce it? If you can reproduce it, I'd be interested in a log file (so please file a new issue). Is it possible you weren't on the latest version of the Dart extension when you first saw this, and during the reinstalls you got the latest one? If so, I wonder if it's related to the new SDK DAPs. I'd be interested to know if you add the following to your VS Code User Settings whether you see the problem come back? "dart.previewSdkDaps": true, |
@DanTup, I can no longer reproduce the bug. |
Thanks for testing! If it seems ok with that line, then it probably wasn't a difference in the debug adapter being used (you can remove this line now you've tested). If it does come up again, please do file an issue and we can try to do some more troubleshooting and capture a log. Thanks! |
same issue thanks for reminder lol |
having the same issue right now. |
There's a bug in VS Code right now that stops debug console output from rendering after a restart (until you close and re-open the debug console). The issue for this is at microsoft/vscode#192653 |
well don't be ashamed - this has helped many people including me!! :D Thank you! |
this is the second time i googled this bug and found this issue. i have to say it's tricky since the search item would be maintained even you open new sessions every time, also considering the position is not that obvious. Thus don't be ashamed and thanks. |
I just happend to do the same, thank you for this. |
Same here. I accidentally wrote some text on "filter"and I wasn't able to find it was masking the output until I read this post. In terms of usability, I think it can be implemented in a more obvious way, such as showing a blue box around the Filter textbox to indicate that filtering is active. |
@dbdq I agree, though unfortunately this UI is all entirely from VS Code and nothing something extensions can influence. There are some open VS Code issues about improving this here that you can add 👍 too. Thanks! |
Steps to Reproduce
Unfortunately, I cannot reproduce this issue on the default counter app. It happens in my app which is quite robust. Some prints work, some never. Everything worked fine until Aug 12. I took a break from coding for a week and didn't touch my computer for a week. Aug 19 is the first day, this issue started to appear. Everything works fine in Android Studio, though.
Expected results:
Actual results:
Screen.Recording.2021-08-21.at.12.58.22.mov
Logs
The text was updated successfully, but these errors were encountered: