Skip to content

Provide an API to check whether debug mode is enabled #2551

Open
@qwwdfsad

Description

@qwwdfsad

We already have a notion of debug mode in our documentation, but we do not have an API to check whether the mode is enabled.

It can be useful in multiple scenarios:

  • To write unit tests that work both with and without debug mode
    • We already do that in our MPP tests
  • To verify and debug program behaviour (see Narrowing down cause of ChildCancelledException with no stack trace #2550)
  • To write your own extensions to coroutines that may exhibit an additional behaviour when debug mode is enabled (stacktrace for cancellation exception subclasses, context markers and so on)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions