Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debugging environment variable that logs when tasks are started in AsyncTaskManager #1567

Open
OlaviSau opened this issue Oct 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@OlaviSau
Copy link
Contributor

Is your feature request related to a problem? Please describe.
In our project in order to get happy dom waitUntilComplete working there are some tasks that will never complete.

Describe the solution you'd like
It would be incredibly useful if happy dom had a flag that would enable debug logs on async task manager that logs when a task is started and ended along with the count of tasks. If possible - it would be even better if it provided some info as to the task that was started.

Describe alternatives you've considered
I can also just edit the source code to add the logging myself but I think this will be a common problem for many that are not as capable at debugging.

Additional context
Add any other context or screenshots about the feature request here.

@OlaviSau OlaviSau added the enhancement New feature or request label Oct 16, 2024
@rossanmol
Copy link

I experienced the exact same problem when working happy-dom. It is usually quite simple to use it on a simple application, but then if you had to integrate it with a large application, it starts becoming hard to understand why waitUntilComplete is not completing. Any debug information on this would be so helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants