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

(request) more default size for display-limit for stderr #191

Open
aoriso opened this issue Feb 20, 2022 · 2 comments
Open

(request) more default size for display-limit for stderr #191

aoriso opened this issue Feb 20, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@aoriso
Copy link
Contributor

aoriso commented Feb 20, 2022

stderrが発生した時のログについて、デフォルト値を大きくすることはできないでしょうか?
stderrに何も表示されない場合、デバッグに苦労します。
RUST_BACKTRACE=1をセットしていることもあり、REが発生すると、すぐにデフォルトの4096バイトを超えてしまいます。

(English)
I want to set more large size of display-limit as default value.
When "stderr" does not displays error test itself, it is difficult for me to find the cause.
This happens mainly in RE case, because I set =RUST_BACKTRACE=1` for debugging.

@aoriso aoriso changed the title (request) more default size for stderr (request) more default size for display-limit for stderr Feb 20, 2022
@qryxip
Copy link
Owner

qryxip commented Feb 21, 2022

"display limit"自体は、例えばある箇所のループの回数がそれぞれ1,2,3,10^5回のテストケースA, B, C, Dがあったとき、ループ内にeprintln!dbg!を書くとDのstderrでターミナルが埋め尽くされるためにA, B, Cのものも見れなくなる、というのが動機だったと思います。
ただデフォルト4KiBは確かに小さすぎますね。

@qryxip
Copy link
Owner

qryxip commented Feb 21, 2022

compete.tomlで設定可能にするのもよいかも。

@qryxip qryxip added the enhancement New feature or request label Feb 21, 2022
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