Virtualbox debugging -- g: error: The VM is already running

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Adam_Ullrich56
Posts: 9
Joined: 14. Mar 2020, 16:58

Virtualbox debugging -- g: error: The VM is already running

Post by Adam_Ullrich56 »

I'm trying to debug an operating system that I am developing.

When I start up the VM machine with

Code: Select all

VirtualBoxVM --startvm "X" --debug
the VM starts paused, but when I execute the 'g' command to continue execution I get this error:

Code: Select all

g: error: The VM is already running
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.
fth0
Volunteer
Posts: 5690
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Virtualbox debugging -- g: error: The VM is already running

Post by fth0 »

From the viewpoint of the debugger, the VM is running. From the viewpoint of the VM, it is paused. In the debugger window, you can use the stop command to stop execution, and the help command to get a list of debugger commands.
Post Reply