Page 1 of 1

Unable to view debugger console from Debug menu->CommandLine

Posted: 18. Jun 2019, 12:43
by sehgal
I launch the virtual machine using the below methods:
Method1:
virtualbox --debug --startvm vm_name

Method2:
set VBOX_GUI_DBG_ENABLED=true
set VBOX_GUI_DBG_AUTO_SHOW=true
virtualbox --startvm vm_name

Using the both the methods, the virtual machine starts in paused state. But when i click on debug menu->CommandLine, i get nothing.
I resume the machine and let the machine boot up. Even after then Debug->CommandLine shows up nothing.

Re: Unable to view debugger console from Debug menu->CommandLine

Posted: 18. Jun 2019, 13:12
by socratis
sehgal wrote:Using the both the methods, the virtual machine starts in paused state
I'm even surprised that it starts at all. You need to use the "VirtualBoxVM", not the "VirtualBox" one (unless you're not using VirtualBox > 6.0.0). The command line that you're looking for, should be:
  • 
    VirtualBoxVM --startvm "<YourVM>" --debug --start-running
"VirtualBoxVM -?" helps as well... ;)

Re: Unable to view debugger console from Debug menu->CommandLine

Posted: 18. Jun 2019, 13:16
by sehgal
I am using 5.2. There is no virtualboxvm in installation directory.
Would upgrading to newer version help?

Re: Unable to view debugger console from Debug menu->CommandLine

Posted: 18. Jun 2019, 13:23
by socratis
sehgal wrote:I am using 5.2.
No, you're not. Because there's no "5.2". There's 5.2.0, 5.2.2, ..., 5.2.30 (as of this moment). Please be precise when you're describing a problem, it's only going to help you in the long run... ;)
sehgal wrote:Would upgrading to newer version help?
Sure, why not? It would keep us in sync and I wouldn't have to upgrade/downgrade just to test what you're describing.

Re: Unable to view debugger console from Debug menu->CommandLine

Posted: 18. Jun 2019, 14:54
by sehgal
I upgraded to 6.0.8. I can now see the debugger console.
I actually want to dump the physical memory for which i use the below:
.pgmphystofile c:\abc\def.dat

but i am hit with the below error:
Error: You hit a debugger feature which isn't implemented yet (argument 0).

Any help with this?

Re: Unable to view debugger console from Debug menu->CommandLine

Posted: 18. Jun 2019, 18:10
by socratis
Why would you expect any further help, if the error says "Not implemented"? Are you thinking that there are hidden features that the developers are keeping away from public eyes and a "magical" switch could turn them on?

You could try to implement it, by providing the source code changes required... ;)

Re: Unable to view debugger console from Debug menu->CommandLine

Posted: 18. Jun 2019, 19:01
by sehgal
I think it is implemented since skipping the argument gives an error that an argument is required. Also help suggests possible arguments.