Still cannot print variable
Konstantin Karganov
kostik@ispras.ru
Fri Apr 15 09:20:00 GMT 2005
Hello JS,
> I run "gdb test" followed by "print d" and then I get this error:
> No symbol "d" in current context.
> Why is it not possible to see the contents of "d" when debugging?
Because you are not yet debugging!
As described above, you started the debugger but not started the
program being debugged.
Try this:
gdb test
break main // to stop your program run
run
print d
--
Best regards,
Konstantin
More information about the Gdb
mailing list