Skip to content

Unable to debug files in test that are not tests #2034

@bergwerf

Description

@bergwerf

I think this may be by design, but I just wanted to check. If I create a file in the test folder that does not use test or run tests (but for example a program that generates test data, or that collects a benchmark), then I cannot debug it (the debugger starts but doesn't do anything, it keeps 'loading' forever). If I put the file in bin, then the debugger works fine. I suppose the plugin assumes all files in test should use the test runner, but perhaps that is a bit too constraining? (at least it would be nice if I can put an option in the debug config to not do this).

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsin testingRelates to test execution of Dart/Flutter tests for end usersis enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions