Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
I've always tested my code using QEMU and it works perfectly but trying to boot the image with Virtualbox or VMware always causes some problems with the bootloader. I wanted to debug the code using gdb but I can't figure out how to connect to the VM.
I followed this and some other guides all saying the same things.
Whenever I boot up the machine VMware hangs forever (finally I need to kill it with the task manager) and gdb prints this error:
VMware Workstation is listening for debug connection on port 8864.
(gdb) target remote localhost:8864
(lldb) gdb-remote 8864
The guide says that if I set the vmx file "debugStub.listen.guest64" to "true" I can use port 8864 to debug.
Also since debugOnStartGuest64 breaks on the first instruction of the BIOS, I didn't enable it. I just run gdb a second before starting the VM so it catches up kinda immediately on the breakpoint I specified before.