Tips for debug C++ code in emacs

  |   Source
  • M-x gdb then M-x gdb-many-windows
  • display/call/s(tep)/n(ext)/watch in gud-mode
  • assert, use frame #num to located the failed assertion
  • windmove-down/up/left/right to move between many windows
  • winnner-mode to redo/undo windows layout
  • C-x r w to save widnows layout, C-x r j to load windows layout
Comments powered by Disqus