Discussion:
any chance of showing array contents & classes with debugOutput() func to show their contents?
bc
2007-04-19 13:07:15 UTC
Permalink
any chance of showing array contents & classes with debugOutput() or
toString() func to show their contents in ddbg?

that would be really cool
Jascha Wetzel
2007-04-19 16:43:43 UTC
Permalink
what exactly do you mean?
ddbg should output the result of a toString method of a class if it has one?
array contents and classes can already be shown component-wise.
Post by bc
any chance of showing array contents & classes with debugOutput() or
toString() func to show their contents in ddbg?
that would be really cool
bc
2007-04-19 17:56:34 UTC
Permalink
On Thu, 19 Apr 2007 17:43:43 +0100, Jascha Wetzel
Post by Jascha Wetzel
what exactly do you mean?
ddbg should output the result of a toString method of a class if it has one?
yes. although i realise that could have side-effects or cause errors so
maybe make it configurable or make it work on a specially named method
Post by Jascha Wetzel
array contents and classes can already be shown component-wise.
i mean for arrays of ints or strings or classes with a debugOutput(), to
output the first 10 or so elements along with the number of elements,
automatically. visual studio does this on vector<int>s at least and it
makes a
great difference.

e.g.
TestVector = [5](10,20,30,40,50)

pretty please?
Post by Jascha Wetzel
Post by bc
any chance of showing array contents & classes with debugOutput() or
toString() func to show their contents in ddbg?
that would be really cool
Jascha Wetzel
2007-04-19 19:00:52 UTC
Permalink
i see what you mean for classes, but arrays of ints? they are output in
the only way i can imagine (make sure you use dmd 1.011 or later and
ddbg 0.1 or later to not have to use type casts on arrays)
Post by bc
On Thu, 19 Apr 2007 17:43:43 +0100, Jascha Wetzel
Post by Jascha Wetzel
what exactly do you mean?
ddbg should output the result of a toString method of a class if it has one?
yes. although i realise that could have side-effects or cause errors so
maybe make it configurable or make it work on a specially named method
Post by Jascha Wetzel
array contents and classes can already be shown component-wise.
i mean for arrays of ints or strings or classes with a debugOutput(), to
output the first 10 or so elements along with the number of elements,
automatically. visual studio does this on vector<int>s at least and it
makes a
great difference.
e.g.
TestVector = [5](10,20,30,40,50)
pretty please?
Post by Jascha Wetzel
Post by bc
any chance of showing array contents & classes with debugOutput() or
toString() func to show their contents in ddbg?
that would be really cool
bc
2007-04-20 10:03:58 UTC
Permalink
On Thu, 19 Apr 2007 20:00:52 +0100, Jascha Wetzel
<"[firstname]"@mainia.de> wrote:

ah, it already does what i was talking about for arrays on those versions,
sorry.
Post by Jascha Wetzel
i see what you mean for classes, but arrays of ints? they are output in
the only way i can imagine (make sure you use dmd 1.011 or later and
ddbg 0.1 or later to not have to use type casts on arrays)
Post by bc
On Thu, 19 Apr 2007 17:43:43 +0100, Jascha Wetzel
Post by Jascha Wetzel
what exactly do you mean?
ddbg should output the result of a toString method of a class if it has one?
yes. although i realise that could have side-effects or cause errors so
maybe make it configurable or make it work on a specially named method
Post by Jascha Wetzel
array contents and classes can already be shown component-wise.
i mean for arrays of ints or strings or classes with a debugOutput(), to
output the first 10 or so elements along with the number of elements,
automatically. visual studio does this on vector<int>s at least and it
makes a
great difference.
e.g.
TestVector = [5](10,20,30,40,50)
pretty please?
Post by Jascha Wetzel
Post by bc
any chance of showing array contents & classes with debugOutput() or
toString() func to show their contents in ddbg?
that would be really cool
Loading...