I have trouble with lite-c crashing. I am trying to pinpoint the location of the crash by adding printfs around, but as I narrow down the search, suddenly it stops crashing. As if the problem jumped out of my printf bracket; when I remove printfs it crashes again.

How should I go on debugging such problems?