Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
Debug C/C++ Programs 
more Comfortably 
StarNight @ 2014.12.14 Trace Code Meetup
Who am I? 
潘建宏 / Jian-Hong Pan (StarNight) 
About Me : http://about.me/StarNight 
出沒在~ 
GitHub : starnight 
PTT : zack2004...
如果今天期望在這場聽到 
GDB的使用方法,那我可能 
讓你失望了!!! 
I'll make you disappoint, 
if you want to learn how to use GDB!!!
我要說的是,使用友善的 
工具讓debug更有效率 
I’ll introduce the tools 
which make debug more efficient.
I love terminal. 
I program with VIM & GDB. 
I want to debug in terminal.
If there is a tool to use GNU 
Debugger with presented 
codes at the same time, that 
will be useful when 
debugging.
Just like this ... 
Codes 
Terminal 
GNU Debugger
vimGdb 
● https://github.com/larrupingpig/vimgdb-for-vim7.4 
● It is a VIM patch that implements gdb 
support in the vim e...
clewn 
● http://clewn.sourceforge.net/ 
● It implements gdb support in the vim editor. 
● It is a program controlling vim ...
pyclewn 
● http://pyclewn.sourceforge.net/ 
● pyclewn allows using vim as a front end to a 
debugger. 
● It is like clewn,...
Comparison of clewn, 
vimGdb and pyclewn 
http://pyclewn.sourceforge.net/
However, I want the tool 
works in terminal without 
graphic support. → no gvim 
Besides, it is complicated to 
install vi...
Conque GDB 
● http://www.vim.org/scripts/script.php? 
script_id=4582 
● GDB command line interface and terminal 
emulator ...
Considering embedded 
system development, 
debugging with cross 
compile tool-chain is 
needed. 
That will be a problem to...
cgdb 
● https://cgdb.github.io/ 
● cgdb is a lightweight curses (terminal-based) 
interface to the GNU Debugger (GDB). 
● ...
Thank you ~
Nächste SlideShare
Wird geladen in …5
×

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

2.528 Aufrufe

Veröffentlicht am

Debug tools sharing.

Veröffentlicht in: Technologie
  • Als Erste(r) kommentieren

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 : http://about.me/StarNight 出沒在~ 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 ● https://github.com/larrupingpig/vimgdb-for-vim7.4 ● 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 ● http://clewn.sourceforge.net/ ● 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 ● http://pyclewn.sourceforge.net/ ● 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 http://pyclewn.sourceforge.net/
  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 ● http://www.vim.org/scripts/script.php? script_id=4582 ● GDB command line interface and terminal emulator in (G)Vim. ● https://www.youtube.com/watch? 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 ● https://cgdb.github.io/ ● 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. ● http://tech.mozilla.com.tw/posts/3826/cgdb- %E6%9B%B4%E5%A5%BD%E7%94% A8%E7%9A%84-gdb ● It is awesome!!!
  16. 16. Thank you ~

×