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
[Web] make it clear that -d web-server doesn't support debug protocol #94831
Comments
Here is the debug log, I noticed something strange, the log says 36503 port, but vs code opened up the 36375 port and it shows the
message on that port and nothing listens on 36503. Checked it on the remote server too, same situation.
|
Also, from vs code if I start debugging (f5) a white page pops up that never stops loading. If I start without debugging (ctrl+f5) a page pops up with the 404 websocket message. |
@mihalycsaba when you say vscode remote are you referring to vscode remote development? |
@maheshmnj yes with the remote development extension's ssh connection to code-server, tried to connect to code-server with chrome, but the web server debugging doesn't work there either. Yeah probably my environment is the problem, I just don't know if it is the setup I did or the host's arm64 architecture. Like I said I can build the app for web, which is all I need. I feel like there is an issue with the web server on arm64. I just wanted to try the oracle ampere a1, they give you 4 cpus for free and they're super fast. On my intel machine my biggest project sometimes takes minutes to analyze the code, in the ampere vps it's 5 seconds max. |
@mihalycsaba this isn't really an issue with flutter but with the environment you are running in. Probably you may try asking about configuring and running flutter in your environment on of the support channels at https://flutter.dev/community. Closing as this issue doesn't seem to describe a bug or a feature request in flutter, if you disagree feel free to write in the comments and I will reopen it. Thank you. |
@maheshmnj I have found this #56992 it says web targets are supported on arm64, but does that mean debugging too? |
I believe this is an issue with |
I don't believe it's related, in that issue they want port forwarding to work the other way too. Meanwhile I have created a new ubuntu x86_64 vm on oracle cloud and the web server starts on ubuntu, it crashed a few times yesterday on it's own, but now it works. So I think this could be Red Hat related. Please don't close this issue yet, I want to use it a bit more on ubuntu. |
So yeah, just when I posted the response here, it crashed again. Yesterday it crashed faster, sometimes after less than a minute. Please tell me how can I provide a more verbose log.
|
Please share complete logs by running |
Well, it doesn't crash with this command. But this way hot reload doesn't work with ctrl+s. Also I don't have to click the dart debug extension for the page to load. |
Tried it in an ubuntu ampere a1 (arm64), crashes there too within a minute, if I start it with f5 |
Running the above command you should be able to hot restart from the terminal by pressing I am not sure if flutter can do anything about it leaving this issue open for further investigation from the team. cc: @yjbanov |
The Let's repurpose this issue to make it more clear that |
@yjbanov How we are supposed to run Web tests and get the logs e.g. in Github Actions with in HEADLESS browser mode, if |
Hi Yegor (@yjbanov), where do you propose we “make it more clear that |
@rmschindler and @yjbanov my suggestion would be to document this in https://docs.flutter.dev/testing/debugging as I think Flutter webapp debugging is quite different from debugging mobile and desktop Flutter apps and definitely has its own quirks in regards to only Chrome & Edge being supported as debug targets and issues like this where the |
the help of "flutter run -h" was not clear for the following:
|
When connecting to code-server with the browser(over ssh) or with vs code I can't start the web server debugger
I can for build web and that works without issues.
When I connect with vs code over ssh, the debug page never stops loading and the Dart debug extension stays gray. I can open the devtools on 9100 port, so port forwarding works.
Steps to Reproduce
Logs
Logs
The text was updated successfully, but these errors were encountered: