5 days ago · Tech · hide · 0 comments

~1089 words. ~5 minutes. tags: emacs programming debugging Or as I would like to call it, GLORIOUS Unified Debugger. This is my submission for June's Emacs Carnival, Underappreciated Emacs built-ins. You can find detailed information in the excellent documentation at (info "(emacs) Debuggers"). Multi debugger support I mostly use its GDB Graphical Interface. But it supports multiple debuggers such as, lldb (LLVM debugger) perldb (Perl debugger) jdb (Java debugger) pdb (Python debugger) guiler (Guile!) dbx (Debugger with support for C, C++, and so.) xdb (Debugger for MS Windows (?)) sdb (System Debugger) The GDB interface The manual has a entire section of the special GDB GUI interface. Which I will illustrate now. This is our demo source file: fibo.c, #include int fibo ( int n) { if (n < 2) return 1; else return fibo (n - 1) + fibo (n - 2); } int main ( void) { for ( int i = 0; i < 5; i++) printf ( "%d: %d\n", i, fibo(i)); } Firstly, we compile via, gcc -g fibo.c -o fibo (The -g flag…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.