[Core] Bugfixes and Debugger