问题描述
我正在尝试调试正在开发的操作系统.
I'm trying to debug an operating system that I am developing.
当我使用VirtualBoxVM --startvm "X" --debug
启动VM机器时,VM开始暂停,但是当我执行'g'命令以继续执行时,出现此错误:
When I start up the VM machine with VirtualBoxVM --startvm "X" --debug
the VM starts paused, but when I execute the 'g' command to continue execution I get this error:
g: error: The VM is already running
但是当我在不使用--debug
的情况下启动虚拟机时,一切正常,但是我无法调试.
为什么会出现该错误消息?
VM开始停止,因此该消息没有意义,并且不允许我调试操作系统.
But when I start my virtual machine without --debug
, everything works fine, but I can't debug.
Why does that error message appear?
The VM starts stopped, so the message doesn't make sense and it doesn't allow me to debug my OS.
推荐答案
我认为已暂停"与停止"不是同一回事.要取消暂停虚拟机,请按Host + P(默认情况下,主机键是Ctrl)
I believe "paused" isn't the same thing as "stopped". To unpause the VM, press Host+P (the host key is by default Ctrl)
这篇关于Virtualbox调试-g:错误:VM已在运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!