Hacker News new | past | comments | ask | show | jobs | submit login

I sometimes used a placeholder function call to make it easier to place a breakpoint. Of course it shouldn't be ever inlined.



Same. I typically define a function "void bp1(){}" in a common utility file, put "bp1();" where I need a breakpoint, and "b bp1" in gdb. Hacky, sure, but really convenient.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: