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

LLDB crystal formatters not working on windows #12112

Closed
wonderix opened this issue Jun 11, 2022 · 2 comments
Closed

LLDB crystal formatters not working on windows #12112

wonderix opened this issue Jun 11, 2022 · 2 comments

Comments

@wonderix
Copy link
Contributor

Bug Report

LLDB crystal formatters etc/lldb/crystal_formatters.py not working on windows. It seems that strings on windows are prefixed with a 4 byte integer.

I will provide a PR for this.

@wonderix
Copy link
Contributor Author

wonderix commented Jun 11, 2022

It seems that this is related to lldb. Debugging the same executable with Visual Studio shows the correct value of member c. In lldb the value of c is shown as utf8 equivalent of 12 (the length of the string)

image

This is the output of lldb

(lldb) p *v1
(String) $0 = (bytesize = 1, length = 12, c = '\f')
(lldb)

@HertzDevil
Copy link
Contributor

I am quite sure Visual Studio uses Natvis, not LLDB's type formatters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants