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

DAP: change result chars: 4096 -> 180 #805

Merged
merged 1 commit into from
Nov 17, 2022
Merged

DAP: change result chars: 4096 -> 180 #805

merged 1 commit into from
Nov 17, 2022

Conversation

ko1
Copy link
Collaborator

@ko1 ko1 commented Nov 17, 2022

Long results on DAP was clipped with 4096 chars. This patch shorten
this limit to 180 chars. Compound data structure doesn't have any
issue because expanding the result shows more details with corresponding
values such as instance variables and so on.

The problem is String object because we can not know the whole string body
if it is > 180 chars. To see the whole body this patch provides #dump
special field to show the whole body of the string and you can copy&paste
the value.

This patch also introduce ::DEBUGGER__::NaiveString class. Evaluation
results of instances of this class will not be clipped so if you need to
get whole body of String, please wrap the string with NaiveString class.

fix #802

Long results on DAP was clipped with 4096 chars. This patch shorten
this limit to 180 chars. Compound data structure doesn't have any
issue because expanding the result shows more details with corresponding
values such as instance variables and so on.

The problem is String object because we can not know the whole string body
if it is > 180 chars. To see the whole body this patch provides `#dump`
special field to show the whole body of the string and you can copy&paste
the value.

This patch also introduce `::DEBUGGER__::NaiveString` class. Evaluation
results of instances of this class will not be clipped so if you need to
get whole body of String, please wrap the string with `NaiveString` class.

fix #802
@ko1 ko1 changed the title change result chars: 4096 -> 180 DAP: change result chars: 4096 -> 180 Nov 17, 2022
@ko1 ko1 merged commit 2f510f0 into master Nov 17, 2022
@ko1 ko1 deleted the dap_limit_result branch November 17, 2022 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Do not omit string when context is repl
1 participant