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

same console.logs within the same ms are not shown #19

Open
teidesu opened this issue Jan 21, 2025 · 0 comments
Open

same console.logs within the same ms are not shown #19

teidesu opened this issue Jan 21, 2025 · 0 comments

Comments

@teidesu
Copy link

teidesu commented Jan 21, 2025

repro:

run the following code on the demo website:

for (let i = 0; i < 10; i++) {
    console.log('meow')
}

expected

meow is printed 10 times

actual

meow is only printed 1-2 times

Image

additional context

after a bit of debugging, chrome devtools frontend (for whatever reason) discards exactly same messages sent within the same timestamp:

https://github.com/ChromeDevTools/devtools-frontend/blob/9a2e154ade4201247b441e3279357159cdfd7c2a/front_end/core/sdk/ConsoleModel.ts#L300-L302

as a workaround im currently adding a counter in 0.001 steps to timestamp (patch) but that's probably not the best solution lol

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

No branches or pull requests

1 participant