More debugger/build fixes

Including detecting of a few other debugger states. Also restored the display of user-friendly call stack records (line:col instead of file #offset)

Some minor changes to regex compilation -- make them static to save recomputing them.