When things go wrong with the code and it never reaches the main function, launching the debugger manually by creating a project less target configuration file is a good way to get additional insights on what may be happening.
This short clip (no audio) shows how to do that.