just use 'perl -d aaa.pl' to get into debug mode. So you can step in, step out, step over, checking stacks and print variables.
在 2011年11月4日 上午11:16,yi wang <[email protected]>写道: > Yes, I got it. Thank you for your active participation. > In summary, two ways to improve efficiency in writing, reading > and debugging programs: 1)use language facilities, for example, print > command, Data:Datadump module and Smart :Comments module. 2)use software > tools, either debugging tool or integrated environment, e.g. komodo etc. > > > > 在 2011年11月4日 上午12:51,Anthony WU <[email protected]>写道: > > embedded system 中可以使用 gdbserver �磉M行�h端除�e……… >> 有�P工具����可以在你的 chaintool 中的 gcc 找到……… >> >> >> -------- Original Message -------- >> Subject: Re: [PerlChina] 工欲善其事,必先利其器 >> From: 万朝伟 <[email protected]> <[email protected]> >> To: [email protected] >> <[email protected]><[email protected]> >> Date: 4/11/2011 0:29 >> >> 对于一般环境的确可以使用gdb,但是有两点很郁闷 >> 1 gdb不支持动态库调试,不知道7.2有没有改观 >> 2 很多环境下根本没办法使用gdb,比如嵌入式环境 >> >> 顺便,推荐一个牛逼的ide codeblocks,这货能挂多个编译器,如果要使用交叉编译器的地方 >> 另外,这货的代码浏览能力比sourceinsight差不了多少 >> >> >> 在 2011-11-3,23:56,cnhack TNT <[email protected]> 写道: >> >> 貌似 GDB 里 print 也可以打印出结构 >> >> 2011/11/3 万朝伟 <[email protected]> >> >>> 尤其希望c语言有 >>> >>> >>> >>> 在 2011-11-3,23:25,cnhack TNT <[email protected]> 写道: >>> >>> Smart::Comme >>> 另外,其实 print + Data::Dumper 就很王道了,真希望所有的语言都有 Data::Dumper >>> >>> 2011/11/3 woosley. xu. <[email protected]> >>> >>>> Smart::Comments[1] is a great substitution for 'print' >>>> >>>> >>>> [1] >>>> http://search.cpan.org/~chorny/Smart-Comments-1.0.4/lib/Smart/Comments.pm >>>> >>>> 在 2011年11月3日 下午6:23,mingwei hu <[email protected]>写 道: >>>> >>>> I am using "prinr" either.It sucks. >>>>> want a share,too. >>>>> thanks. >>>>> 在 2011-11-3 下午5:51,"yi wang" <[email protected]> 写道: >>>>> >>>>> >>>> -- >>>> woosley.xu. http://twitter.com/redicaps >>>> >>>> >>>> >>>> >>>> >> -- >> 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 >> 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 >> 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 >> 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。 >> > > -- > 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 > 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 > 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 > 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。 > -- --------------------------- Achilles Xu -- 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
