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

Displaying '#' for symbols in the debugger inspector #587

Merged

Conversation

adri09070
Copy link
Contributor

The debugger inspector uses the method Object>>#stDisplayString to display objects in the tree view of the debugger.

Object>>#stDisplayString

	^ StObjectPrinter asTruncatedTextFrom: self

which truncates the string description to 100 characters. This is done by calling the method:

Object>>#displayStringLimitedTo: limit
	"Answer a String whose characters are a description of the receiver.
	If you want to print without a character limit, use fullDisplayString."

	^ self printStringLimitedTo: limit using: [:s | self displayStringOn: s]

which doesn't print # for symbols.

I just override #stDisplayString in the class Symbol to display the character #

@jecisc jecisc merged commit 3cfa7bb into pharo-spec:Pharo12 Sep 25, 2023
1 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants