4 ms·
This is my favorite self-invented trick when I need a debugger to find the spot where my code is crashing but don’t have one handy or forgot how to use it: In v
by jacobgorm 5y ago
This is my favorite self-invented trick when I need a debugger to find the spot where my code is crashing but don’t have one handy or forgot how to use it: In vim, select a block of code, and then replace any blank lines with __LINE__ printfs. Run the program, and it will log until the point where the crash is. Add more blank lines and redo the replace if necessary.