Visual debugging trouble

Other misc things
Post Reply
helmha
Member
Posts: 10
Joined: Sun Sep 12, 2021 10:37 am

Visual debugging trouble

Post by helmha »

Hello

I'm struggling getting the source level debugging working on Linux with latest z88dk and vscode.

I use MAME with its gdbstub debugger and vscode launching z88dk-gdb. I start MAME with following command:
mame sc3000 -cart game.rom -window -resolution 800x600 -debugger gdbstub -debugger_port 1234 -debug

And then start debugging from VScode. It does connect but at startup vscode pops up two errors messages:
- "Could not get threads: A program is running. (from thread-info)"
- "Failed to get Stack Trace: A program is running. (from stack-info)"

I'm unable to see register values, nor step through the program. However I can send commands, list the source and have a look at stack via debug console. Any ideas what might be the problem?
helmha
Member
Posts: 10
Joined: Sun Sep 12, 2021 10:37 am

Re: Visual debugging trouble

Post by helmha »

Oh nevermind, I got it working! A stupid mistake made with too tired eyes :D
Post Reply