Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Setting a breakpoint ist just „b place“ place can be for example file:line, or the name of a function, etc.

Then „n“ for next line, „s“ for step-in, „fin“ to go to the end of the function

Dprintf for adding dynamically printfs for watching variables

List will show you 10 (default) lines of code around the cursor, bt will show you a backtrace…

I think that covers the basics. As you can see, ist just a keypress mostly for doing anything.

With Emacs you can click on the fringe for setting/deleting breakpoinst.

The bread and butter is really easy, and other than seeing the cursor in the code, there is no advantage. In Emacs you DO see the cursor moving…





Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: