cs01 / cs01/gdbgui

Add option to display array of chars as string

Open
#267 1 comment 8 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
10.4k
Forks
521
PR merge metrics
No merged PRs in 30d

Description

Hi,
First of all, great project. I love it :)
I would like to request a small feature of displaying variables, which are defined as array of chars, as strings.
Please see the attached image:
The variable entry->d_name is defined as array of chars. The only way I could show it as string was to add it to the expressions with a cast to (char *).
Can you add the option to show the string in the "local variables" window ?

Thanks

![image](https://user-images.githubusercontent.com/3902244/55431442-3b9ccd80-5599-11e9-8085-e02011da9a16.png)

Contributor guide

Open the contributing guide

Research direction

Start at the local variables window and trace how array-of-char values are currently rendered, comparing them with the expression view where a (char *) cast displays the value as a string. Identify the existing variable-display entry point and determine how the option should appear; done means array-of-char variables display their string contents without requiring a cast.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.