Comment

Comment by jacobgorm

Select a block of text with V, press colon and then type:

s/^$/printf("@%d\\n", __LINE__);

To place a line printf on every empty line in the program, to quickly find out where your code crashes on the next run.

Obviates most of my need for external debuggers, and works over serial lines etc where setting up a debugger is going to be a hassle or simply not possible.

parent jacobgorm 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton