Some fixes for debug console.
Some fixes for debug console.

luastoned/turbo,YuanPeir-Chen/turbo-support-mipsel,ddysher/turbo,luastoned/turbo,kernelsauce/turbo,mniestroj/turbo,YuanPeir-Chen/turbo-support-mipsel,zcsteele/turbo,ddysher/turbo,zcsteele/turbo