More debugger enhancements and fixes

Plenty of improvements, too many to list. Not really urgent, merging can wait until there's not the hassle of having to backport it to the SVN repository anymore