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

Allow users to request more events in debuginfo dump #1288

Open
graydon opened this issue Dec 3, 2023 · 2 comments
Open

Allow users to request more events in debuginfo dump #1288

graydon opened this issue Dec 3, 2023 · 2 comments

Comments

@graydon
Copy link
Contributor

graydon commented Dec 3, 2023

Currently the DebugInfo::write_events method stops after the most recent 25 events. This is hardcoded and possibly not ideal for users, some will want more, but it limits output when a contract has gone awry and produced thousands of events. We should provide a way to adjust it.

Note this only has to do with native testing mode, and only with debugging turned on, and can be changed without perturbing anything protocol-level. It's relatively low priority, just to help with debugging.

@leighmcculloch
Copy link
Member

What happens if more than 25 events are written? Does it error?

@graydon
Copy link
Contributor Author

graydon commented Dec 3, 2023

No it just stops at 25 and says ... {count} events elided ... at the end.

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

3 participants
@graydon @leighmcculloch and others