I'm using Android Studio, when I run the project on chrome or edge I see the splash screen, and then, usually I see this:
EDIT - happened after adding await Firebase.initializeApp();
Muting all breakpoints and then running Debug worked for me.
I had this issue but “flutter clean” solved it.
I've had this problem as well, although it is not a solution (seems a problem with the web dev tools to me) a workaround appears to be to remove or mute your breakpoints before running debug!
I've been struggling with this problem for months. I isolated the cause, like you, to an external package but in my case, it was AWS Amplify but I believe they cause some Javascript issue/conflict with the debug tools.
So, as long as at the point you run the project in debug there aren't any active breakpoints it appears to run ok. You can then add your breakpoints afterwards. As mentioned if you don't want to reset your breakpoints each time, muting them before running the project in debug also works if your IDE allows.
It would be interesting to hear if this works for others as it seems to work for our team on both Windows and Mac debugging in Chrome with Android Studio.
Try to launch your application as a web server by adding -d web-server arguments, you need to add Dart Debug Chrome extension to your chrome navigator, if you want to test your app on release mode add --release to your commande.
If you use VS Code as your IDE, here is a launcher that can be used for mobile and web platform:
{
"version": "0.2.0",
"configurations": [
{
"name": "production",
"request": "launch",
"type": "dart",
},
{
"name": "Web-release",
"request": "launch",
"type": "dart",
"args":["--web-renderer","html","-d","web-server","--release"],
},
{
"name": "Web-debug",
"request": "launch",
"type": "dart",
"args":["--web-renderer","html","-d","web-server"],
},
]}
You can escape "--web-renderer","html" if your application doesn't contain emojis or a package that handle images.
on android studio how your launcher should look like:
As I mentioned in a comment, removing all breakpoints solves a different error message, but you can try and see if it also helps for this one.
The answer by TimMutlow resolved the issue for me(finally!), but I just cleared all breakpoints under Run > Remove All Breakpoints. However, the breakpoints I had set were still hit, even though they no longer showed in the IDE. I suspect some underlying issue where I had added a lot of breakpoints/modified code that needed to all be cleared from cache.
I also agree that this is a workaround to an IDE/Web Dev tools problem.
I had the same issue and had to run flutter run command to get it working
flutter run lib/main.dart
Related
I'm using Visual Studio Code Insiders on Arch Linux (installed via snapstore), and whenever I try to "open with live server", no browser launches. I can manually go to the local domain myself and its running, however it is annoying how it doesn't work out of the box. Same thing happens when using a react app, except it shows a link to follow in the integrated terminal.
It's not the biggest of deals, but it is annoying me because I do remember a time when Firefox was my default browser (fresh Arch install) and I was not having that problem.
Maybe I messed up something in the VS Code user settings but I cant remember... any tips to fix this hiccup would be much appreciated!
also the same thing happened with VS Code Insiders-git and bin from the AUR. Installing other versions and other repos didn't help.
I am using Windows 7 and developing a Firefox add-on that needs to display notifications, but none are being displayed. I have confirmed that the command browser.notifications.create is being executed in the background script and the returned promise fulfilled with an ID.
I ran a regression on Firefox builds using Mozilla's mozregression tool along with their notifications example at https://github.com/mdn/webextensions-examples/tree/master/notify-link-clicks-i18n. I found that the last known good build was on 2018-09-25, and the next day's build was bad. The tool gave me a response of "Unable to find enough data to bisect"
I searched Bugzilla but found nothing, which seemed strange since apparently this issue is over 2 years old. So before I submit a bug report, does anyone have any ideas what the issue might be?
Edit: As requested, here's the code
browser.notifications.create({
"type": "basic",
"iconUrl": browser.extension.getURL("icons/link-48.png"),
"title": title,
"message": content
});
Is there a way to turn on some kind of log output from Visual Studio Code to figure out what is going on with a debug connection to a gdbserver (in this case openocd)?
I am running Visual Studio Code on MacOs with the Microsoft extension Remote-SSH and Native debug. Using the Remote-SSH I am connecting to a CentOS system and have been able to edit and debug code there. I can debug command line C & python using gdb without issues, but have been unable to connect to an openocd gdbserver using the following setup in my launch.json file:
```{
"name": "gdb remote",
"type": "gdb",
"request": "attach",
"remote":true,
"executable": "${WorkspaceFolder}/build/xyz.elf",
"gdbpath": "/usr/bin/gdb",
"debugger_args": ["-ex \"source ~/platform.gdb\""], //sets the correct architecture
"target": "A.B.C.D:10010",
},```
When I try to run the remote gdb debug in the launch.json above everything looks happy at first. I get the debug bar with all the expected buttons on it, but it won't do anything. If I check the openocd output it does not tell me that there have been any gdb connections. If I run gdb from the command line on the remote system, set the appropriate architecture and execute "target remote A.B.C.D:10010" I connect without issues and openocd informs me that there has been a connection. Any suggestions or help in debugging why VSCode doesn't really connect would be greatly appreciated.
P.S. I am a recent convert to Visual Studio code from another editor and am not completely familiar with all of its settings. This recent switch in editors is due to the recent work from home mandate making my old XWindows editor impossible to use over VPN. VSCode with the Remote-SSH seems to be the best solution I have found so far, so I am very eager to get the gdb with target remote working.
Just to see the logged output of VSCode wrt SSH, which is not directly solving your problem, try this in VSCode on your Mac:
View -> Output. A window should show up in a panel named "OUTPUT". There may be several other panels, such as "PROBLEMS", "DEBUG CONSOLE", "TERMINAL".
Each of these panels has a dropdown in the upper right hand corner.
In "OUTPUT", select the drop-down, and you should be able to find "Remote - SSH" that will show a log of what happens when you connect.
After upgrade to MacOS Catalina (or maybe unrelated) show intent actions command stopped working in Flutter.
If I run some error - show intent action is working just fine. https://take.ms/Jr7VY
If I just try to show intent actions for regular Widget - it isn't showing anything. In the past it was suggesting something like "Center Widget", "Add Widget", "Add Padding" and so on..
UPD: Updating to Android Studio 3.6 preview helped the problem (I didn't move any profiles). But still no idea what lead to the problem and how to fix on 3.5 stable.
Does visual studio code works fine with showing intent action?
Maybe you should run fluter doctor to find if there are any issues with the flutter installation.
Also you can find more details in the official wiki on Catalina Support:
https://github.com/flutter/flutter/wiki/State-of-Catalina-Support
Are IntelliJ plugins up to date? Especially flutter and dart? After reset all settings IntelliJ, reinstall plugins again its not flutter side problem, I think it’s IntelliJ problem
Try updating to Android Studio 3.6 (currently in RC1 Preview).
You might want to check the Keymap.
I found that in 3.6 with the default Keymap option-return worked but when I switched to Eclipse (macOs) Keymap, it stopped working again.
Search for "intention". When using the Eclipse (macOS) Keymap I found that the intentions command was not setup to use option-return so I added it and it works.
The solution is to download another Android Studio version (doesn't matter which) and install it. Helped two times.
I use asp core for my project.
in debug mode, I can not see my views in browsers, since IIS Express starts and stops suddenly! So, the web page is not available.
"buildOptions": {
"platform": "anycpu",
"emitEntryPoint": true,
"preserveCompilationContext": true
},
check the platform in project.json.
since we are working in a team on the project the platform was x86 based on other system.
I have had the same thing happen to me from time to time. The last time was caused when I moved an application from a development system to a test system. The problem was not having the correct version of asp.net-core on the test machine. Other missing DLL's have caused me similar problems.
To find the problem I needed to look at the logs. There will be a message somewhere. I would start with the IISExpress log (default location %userprofile%\documents\IISExpress). You might find something in the windows event logs (use event viewer). Other things I have tried are to invoke the application directly - have a look at this article for the Developer Community. (The article also shows how to use WinDbg to grab an error message and gives a few other hints.)