y***w 发帖数: 44 | 1 【 以下文字转载自 Java 讨论区 】
发信人: yuanw (l_tiger), 信区: Java
标 题: Linux 下用 gdb 如何debug java?
发信站: BBS 未名空间站 (Wed May 30 03:11:32 2012, 美东)
I have followed the instruction of the following page to compile and run.
http://gcc.gnu.org/java/gdb.html
From GDB, I could set a break point and stop at that break point. But I
could not print any value of the variables. When I tried to print the value
of a variable, there is an error print like the following:
No symbol "args" in current context
I could trace the program step by step, but I just could not print the value
of those variables. Could somebody tell me how to print the values of those
variable?
Thanks! | y***w 发帖数: 44 | 2 I found the issue:
I need to use
javac -g ****
for compile.
value
value
【在 y***w 的大作中提到】 : 【 以下文字转载自 Java 讨论区 】 : 发信人: yuanw (l_tiger), 信区: Java : 标 题: Linux 下用 gdb 如何debug java? : 发信站: BBS 未名空间站 (Wed May 30 03:11:32 2012, 美东) : I have followed the instruction of the following page to compile and run. : http://gcc.gnu.org/java/gdb.html : From GDB, I could set a break point and stop at that break point. But I : could not print any value of the variables. When I tried to print the value : of a variable, there is an error print like the following: : No symbol "args" in current context
|
|