In my experience this can sometimes happen in the event of a Segfault. Is it possible that you are accessing freed memory or attempting to dereference some null value? I don't have experience with VSCode debugging, but in other IDE's I have had this happen frequently (using GDB ).