added debuggerpanel to window
added spawnconsole parameter
half migrating to new arch, broken atm though