User forums > Using Code::Blocks
get return value of a call while debugging
MoonKid:
Where can I see the return value of a function/methode that is called while debugging.
I step on each line with F7. I want to see each(!) return value. Where can I see it?
Here is an example (I know the code is wrong!):
--- Code: ---wxString strSubDest = strDestination_ + dirname.Right(dirname.Find(wxFILE_SEP_PATH, true));
--- End code ---
I want to see two values if I step over this line.
Return value of Right() and of Find().
thomas:
You cannot, since there is no symbol for it. If you want to see them, you have to assign them to a variable first.
MoonKid:
--- Quote from: thomas on April 16, 2006, 03:27:03 pm ---You cannot, since there is no symbol for it.
--- End quote ---
Why does the MSVC debugger can do this?
thomas:
--- Quote ---Why does the MSVC debugger can do this?
--- End quote ---
Obviously by secretly creating a symbol.
MoonKid:
--- Quote from: thomas on April 16, 2006, 03:53:59 pm ---by secretly creating a symbol.
--- End quote ---
You mean the MSVC compiler restruct code like this
--- Code: ---functioncall();
--- End code ---
to
--- Code: ---long rc = functioncall();
--- End code ---
?
And then the debugger can handle it?
Nice! Why does GCC and GDB does not allow this?
Navigation
[0] Message Index
[#] Next page
Go to full version