Skip to content

Harper should not warn about "too long JS execution" when using a debugger #122

@Ethan-Arrowood

Description

@Ethan-Arrowood

When using a debugger in application code, such as in a resources.js with jsResource. If you stay on the breakpoint for too long, the warn message:

[http/1] [warn]: JavaScript execution has taken too long and is not allowing proper event queue cycling, consider using 'await new Promise(setImmediate)' in code that will execute for a long duration

Will appear. This should not warn when the user is actively pausing execution intentionally.

We could just disable this message if threads.debug: true, or we can try to get fancier and see if there is something else we could detect (like if the user is actively using the debugger in that moment or not).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions