Skip to content

[Proposal] Provide an option for enabling the forced debug mode #4894

Closed

Description

@akemimadoka

Is your feature request related to a problem? Please describe.
When debugging a single Dart file and setting the cwd to the root of another Flutter project, the debug mode switches to Flutter.

Describe the solution you'd like
Provide a forced debug mode option that uses the user-provided value when available, without performing automatic checks if the value has been set by the user.

Describe alternatives you've considered
Downgrade to v3.76.1

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Dec 12, 2023
  2. changed the title [-][fearture] Provide an option for enabling the forced debug mode[/-] [+][Proposal] Provide an option for enabling the forced debug mode[/+] on Dec 12, 2023
  3. DanTup commented on Dec 13, 2023

    @DanTup
    Member

    Can you provide more details about the setup (for example the launch.config you're using)?

    I think your problem might be solved by having your CLI script inside the bin/ or tool/ folder, since those folders are always considered Dart scripts even when in Flutter projects.

  4. added
    awaiting infoRequires more information from the customer to progress
    on Dec 13, 2023
  5. akemimadoka commented on Dec 13, 2023

    @akemimadoka
    Author

    The script is placed in the bin/ directory

  6. DanTup commented on Dec 13, 2023

    @DanTup
    Member

    @akemimadoka can you provide an example I can use to reproduce this? I would've expected it to be broken in 3.76 and fixed in 3.78 by 7e95aeb but it sounds like you're already on 3.78?

  7. akemimadoka commented on Dec 13, 2023

    @akemimadoka
    Author

    In my case, it works fine with version 3.76 but the aforementioned issue arises with version 3.78.

  8. DanTup commented on Dec 13, 2023

    @DanTup
    Member

    There's a related issue at #4867 with an example that failed because cwd was not set, but when setting cwd it worked.

    Can you provide an example so I can reproduce your issue?

  9. akemimadoka commented on Dec 13, 2023

    @akemimadoka
    Author

    image
    image
    In my case, when I set the cwd to the root directory of the Flutter project, it will be debugged as a Flutter project.

  10. DanTup commented on Dec 13, 2023

    @DanTup
    Member

    Oh, I see - I thought your cwd was the same as the project containing the script. This is actually the case I imagined in the comment at #4867 (comment)

    I'll close this as a dupe of #4867 (comment) and we'll tackle it there.

  11. added and removed
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    awaiting infoRequires more information from the customer to progress
    on Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions