Discussion:
I've got a problem of getting ddbg to work with CB
Davidl
2007-03-15 06:36:16 UTC
Permalink
the nightly build C::B doesn't work with ddbg i don't get why?
i 've set the compiler and linker option all get -g
and also set the ddbg name to ddbg_gdb.exe and set it as the debugger
if i set a breakpoint in C::B , and start debugging i see the following:

Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger finished with status 1

any idea of what happened?
and ain't new type STL stuffs all C++ things?
vanh
2007-03-15 09:49:43 UTC
Permalink
Post by Davidl
the nightly build C::B doesn't work with ddbg i don't get why?
i 've set the compiler and linker option all get -g
and also set the ddbg name to ddbg_gdb.exe and set it as the debugger
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger finished with status 1
any idea of what happened?
and ain't new type STL stuffs all C++ things?
I've just download the latest 3/14/07 and it work fine with me.

vtp
Davidl
2007-03-15 10:06:41 UTC
Permalink
oh, i know it's the C::B's bug, it couldn't send the executable binary
which
is in a path contain spaces to ddbg correctly.
now i'm playing around with ddbg happily!!

err, another codeblock bug is create two workspace, and open the source of
them
in the main window, and then close the first opened workspace , and then
click the
source file which is opened there. C::B would hang.

err, another inconvenience of C::B is no code completion.

and also is there any possible to view the different call stack frame args
?
like in a func which get called from main(char[][] args), can i watch the
main
args by cast(char[][])args ? now it's impossible of doing so , it gives me
symbol cast(char[][])args not found, and switch call stack frame is used
for what?
right click to see it in the call stack window.

Though the problems i stated here mostly are C::B related, please someone
who is
familiar with C::B help me. Great thanks!!
Post by Davidl
the nightly build C::B doesn't work with ddbg i don't get why?
i 've set the compiler and linker option all get -g
and also set the ddbg name to ddbg_gdb.exe and set it as the debugger
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger finished with status 1
any idea of what happened?
and ain't new type STL stuffs all C++ things?
Simen
2007-03-16 22:31:33 UTC
Permalink
Post by Davidl
err, another inconvenience of C::B is no code completion.
I'm using the latest nightly build and code completion works nice.
Post by Davidl
and also is there any possible to view the different call stack frame args
Debug->Debugging windows->Call stack
Post by Davidl
like in a func which get called from main(char[][] args), can i watch the
main
args by cast(char[][])args ? now it's impossible of doing so , it gives me
symbol cast(char[][])args not found, and switch call stack frame is used
for what?
right click to see it in the call stack window.
I don't understand what you mean.
Are you saying that in this code:
Import std.stdio;

void main(char[][] args)
{
writefln(cast(char[][])args);
}
You get an unknown symbol error?
Ddbg doesn't support arrays yet, so it wont show in the watches window if thatÂ’s what you mean.
Davidl
2007-03-29 13:53:48 UTC
Permalink
<Davidl at 126.com> wrote in message
Post by Davidl
err, another inconvenience of C::B is no code completion.
I'm using the latest nightly build and code completion works nice.
Post by Davidl
and also is there any possible to view the different call stack frame args
Debug->Debugging windows->Call stack
i mean in the call stack , u see severl different frames of different funcs
, i want to see those args of those funcs
Post by Davidl
like in a func which get called from main(char[][] args), can i watch the
main
args by cast(char[][])args ? now it's impossible of doing so , it gives me
symbol cast(char[][])args not found, and switch call stack frame is used
for what?
right click to see it in the call stack window.
I don't understand what you mean.
Import std.stdio;
void main(char[][] args)
{
writefln(cast(char[][])args);
}
You get an unknown symbol error?
Ddbg doesn't support arrays yet, so it wont show in the watches window
if that?s what you mean.
nope, i mean
when code get run into line 3, i want to use cast(char[][])main.args to
see those args passed to main

1 void hello(char[] name)
2 {
3 writefln(name);
4 }
5 void main(char[][]args)
6 {
7 hello(arg[1]);
8 }
Jascha Wetzel
2007-03-29 14:22:51 UTC
Permalink
Post by Davidl
nope, i mean
when code get run into line 3, i want to use cast(char[][])main.args to
see those args passed to main
1 void hello(char[] name)
2 {
3 writefln(name);
4 }
5 void main(char[][]args)
6 {
7 hello(arg[1]);
8 }
you cannot evaluate expressions in other stackframes than the current,
yet. i will add this in one of the next releases.

Loading...