microsoft/vscode-js-debug-companion

Can be used with flutter web?

pedro-gilmora opened this issue · 5 comments

Can be used with flutter web?

It looks like flutter has their own debugger. https://docs.flutter.dev/development/tools/vs-code

You should try installing the flutter extension to get it.

I mean for Codespaces, so sorry, I forgot to specify

I don't know much on the Flutter side.

This extension works if you connect to a codespace from the Codespaces extension in VS Code desktop, but not via web (unless you set up RDP or something and set browserLaunchLocation: "workspace"). We need to be able to launch the browser in debug mode, which we cannot do as an ordinary webpage.

Flutter needs a Chrome installation to raise its debugger port. I thought this extension could achieve remotely. It might be a good support. Something like to send and event to VSCode local to raise local Chrome and stablish a connection. I guess it might need to me registrable as a flutter device, providing an ID to be selected as a runnable device. I guess you got my point.

Something like to send and event to VSCode local to raise local Chrome and stablish a connection

That's pretty much how it works when you browser debug while connected to codespaces from a local VS Code install. There's a "companion extension" that runs on the local side for this purpose. But again this is not something than a 'random webpage' can do.