Skip to content

Better no folder debugging #3576

@isidorn

Description

@isidorn

Hi VS Code PM here 👋

  1. Purple no folder VS Code -> create a new dart file
  2. Press F5 -> notice how we offer the user to download your extension 👏
  3. Now the user presses F5 again and wants to debug, but nothing happens since dart is not supporting no folder debugging

Easiest to do this is to have a dynamic resolveDebugConfiguartion that will provide a launch configuration on the fly. Example

Apart from that consider contributing to the Editor title area menu, such that a Play button would appear in the Editor Title area (picture below). Example how to do this https://github.com/microsoft/vscode-mock-debug/blob/main/package.json#L80

I think both of these are super important and would really love that we improve this experience 💯
I see how you are currently relying on being in a folder and generating a launch.json, but hopefully we should be able to simplify that even further.

Let me know if I can help somehow. I am also open to a quick 30 min meeting where we can discuss about the new cool VS Code debug features that dart could potentially adopt.

fyi @DanTup

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsis enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions