由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
SanFrancisco版 - Linux 下用 gdb 如何debug java? (转载)
相关主题
xuexi美女急招ADMIN讲解员,有时薪
湾区:Quality Assurance Engineer (QA) is needed 不知道能在这里发吗BAD怎么了?
CS的女生也是会嫉妒的!杯具
need IT help now[Job opening] iPhone engineer
帘外雨潺潺,回顾2007的三藩 --- 视觉记忆Costco卖的和让人试吃的Cheese引发了E. coli
计算机业, Support和Developer的区别? (转载)Santa Clara, 震感明显
怒了Job Openings in Top Semiconductor Company
近期在STANFORD美术馆有一个展最新辐射雨数据测量进程
相关话题的讨论汇总
话题: could话题: print话题: value话题: gdb话题: variables
进入SanFrancisco版参与讨论
1 (共1页)
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

1 (共1页)
进入SanFrancisco版参与讨论
相关主题
最新辐射雨数据测量进程帘外雨潺潺,回顾2007的三藩 --- 视觉记忆
UPS寄来的包裹在apartment office丢失,怎么办?计算机业, Support和Developer的区别? (转载)
严肃认真地请教一下code review怎么做的问题怒了
辐射射到黑龙江.近期在STANFORD美术馆有一个展
xuexi美女急招ADMIN讲解员,有时薪
湾区:Quality Assurance Engineer (QA) is needed 不知道能在这里发吗BAD怎么了?
CS的女生也是会嫉妒的!杯具
need IT help now[Job opening] iPhone engineer
相关话题的讨论汇总
话题: could话题: print话题: value话题: gdb话题: variables