Fixes #23, Tracing stops working when setting debug flags in QPRuntime to false
Too many console.log() calls were guarded.
Also tagged all the debug messages with the call origins