Override tostring in VisualD?
Rainer Schuetze
r.sagitario at gmx.de
Mon Oct 15 18:17:14 UTC 2018
On 11/10/2018 02:03, James Japherson wrote:
> I'm trying to customize the debug display values.
>
> I've overridden toString in my types but they are not effecting the
> displayed values. It simply displays a sort of json of the type. (which
> happens to be real long and contains a lot of indirections, I want to
> shorten it to something meaningful like displaying the relevant values)
>
> Is there any?
>
The mago debug engine/expression evaluator plugin does not have a
visualizer language to adapt the display of specific types as C++ has.
The expression evaluator plugin that is used with the VS debug engine
can evaluate "obj.toString()" in the watch window, though.
Unfortunately, slice return values such as strings cannot be displayed
for 64-bit code due to the non-standard extern(D) ABI.
More information about the Digitalmars-d-debugger
mailing list