Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Debug C/C++ Programs More Comfortably @ 2014.12.14 Trace Code Meetup


Published on

Debug tools sharing.

Published in: Technology
  • Login to see the comments

Debug C/C++ Programs More Comfortably @ 2014.12.14 Trace Code Meetup

  1. 1. Debug C/C++ Programs more Comfortably StarNight @ 2014.12.14 Trace Code Meetup
  2. 2. Who am I? 潘建宏 / Jian-Hong Pan (StarNight) About Me : 出沒在~ GitHub : starnight PTT : zack2004 plurk : StarNight Facebook : Jian-Hong Pan 目前繼續在種花店當個打雜園丁 ~
  3. 3. 如果今天期望在這場聽到 GDB的使用方法,那我可能 讓你失望了!!! I'll make you disappoint, if you want to learn how to use GDB!!!
  4. 4. 我要說的是,使用友善的 工具讓debug更有效率 I’ll introduce the tools which make debug more efficient.
  5. 5. I love terminal. I program with VIM & GDB. I want to debug in terminal.
  6. 6. If there is a tool to use GNU Debugger with presented codes at the same time, that will be useful when debugging.
  7. 7. Just like this ... Codes Terminal GNU Debugger
  8. 8. vimGdb ● ● It is a VIM patch that implements gdb support in the vim editor. ● You need to rebuild VIM with this patch, if you want to install it.
  9. 9. clewn ● ● It implements gdb support in the vim editor. ● It is a program controlling vim through the netBeans socket interface. ● Clewn can only be used with “gvim”, not vim. ● Clewn, as a standalone process, needs its own terminal.
  10. 10. pyclewn ● ● pyclewn allows using vim as a front end to a debugger. ● It is like clewn, but is implemented with python. → cross platform ● pyclewn has more gdb features than clewn.
  11. 11. Comparison of clewn, vimGdb and pyclewn
  12. 12. However, I want the tool works in terminal without graphic support. → no gvim Besides, it is complicated to install vimGdb.
  13. 13. Conque GDB ● script_id=4582 ● GDB command line interface and terminal emulator in (G)Vim. ● v=ZcSjaYSoqnc ● It needs GDB 7.0+ and full python 2.7 support. ● It is a “VIM plugin”.
  14. 14. Considering embedded system development, debugging with cross compile tool-chain is needed. That will be a problem to Conque GDB.
  15. 15. cgdb ● ● cgdb is a lightweight curses (terminal-based) interface to the GNU Debugger (GDB). ● It provides a split screen view that displays the source code as it executes. ● %E6%9B%B4%E5%A5%BD%E7%94% A8%E7%9A%84-gdb ● It is awesome!!!
  16. 16. Thank you ~