Skip to content

Async debug #14

@HuyaneMatsu

Description

@HuyaneMatsu

Scarletio should have an option to turn on async debug mode.

Async debug mode would trace every future mutation. If required these actions could be displayed. By default these would be shown if a future is not completed as expected.

The feature can implemented on two ways:

  • Environmental variable that sets debug mode on startup.
  • Functional api that modifies the future api runtime.

This change would also require trace handling modifications, since it needs to store the trace. Long-time trace storing would require to ditch the frame itself to enable garbage collection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions