You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support ',<number>' to visualize a pointer as an array #715
Gregg Miskelly (@gregg-miskelly) Cool. I'm really curious, can we add that support in MIEngine ? is interpretation (parsing) of the watch expression done by VS debugger engine or by debugger extension like MIEngine ?
Issue #709 is my other more general question related to this.
Activity
gregg-miskelly commentedon May 1, 2018
CC Andrew Wang (@WardenGnaw)
gregg-miskelly commentedon May 1, 2018
Ling Wang (@digittigerw) I believe you would evaluate something like
(int[20])myArr.Andrew Wang (@WardenGnaw) do I have that right?
digittigerw commentedon May 1, 2018
Yeah, actually (int[20])*myArr works. Thanks for the help ! Andrew Wang (@WardenGnaw) Gregg Miskelly (@gregg-miskelly)
[-]how to watch a pointer as array [/-][+]Support ',<number>' to visualize a pointer as an array[/+]gregg-miskelly commentedon May 1, 2018
Ling Wang (@digittigerw) Excellent. I will leave this open to track the possible future feature of supporting ','.
digittigerw commentedon May 2, 2018
Gregg Miskelly (@gregg-miskelly) Cool. I'm really curious, can we add that support in MIEngine ? is interpretation (parsing) of the watch expression done by VS debugger engine or by debugger extension like MIEngine ?
Issue #709 is my other more general question related to this.
gregg-miskelly commentedon May 2, 2018
The MIEngine has a tiny bit of support for format specifier today. I think the only thing we implemented was
,xand,d. The array size format specifier could be implemented using this code: https://github.com/Microsoft/MIEngine/blob/72df3ee1ad81a9698a35ced2410016ea9910c5e0/src/MIDebugEngine/Natvis.Impl/Natvis.cs#L501Trass3r commentedon Jun 9, 2022
MIEngine/src/MIDebugEngine/Engine.Impl/Variables.cs
Lines 430 to 438 in 4f41195
We could actually use the
*array@(len)syntax to make it work.Though that seems to be gdb only syntax.
WardenGnaw commentedon Oct 10, 2022
Addressed with:
#1329
#1345