simongeilfus / Cinder-Runtime

Runtime-Compiled C++ for Cinder
58 stars 43 forks source link

Verbose improvements #13

Closed richardeakin closed 7 years ago

richardeakin commented 7 years ago

This PR achieves two important things for verbose debugging:

1) You can set the BuildSettings().verbose( true ) flag from user code. Beforehand, settings this wouldn't do any good since the logging was done at the end of BuildSettings constructor. I moved it to the ClassWatcher::watch() method for now, which also has the added benefit of showing the class type in the log pretty info 2) I set the module name before logging verbose mode.

With this, I usually enable verbose mode only for the module I'm trying to debug, which makes things easier to find in a complex setup.

There's also a commit in there (584d49a) that is cleaning up some of the path settings, which I did while debugging something or another. Should probably take a larger pass at that later but this felt like an improvement.