Can all registered uses please login, even just for a few minutes..
It helps build a picture where our "good traffic" is coming from..
Thanks :)
It helps build a picture where our "good traffic" is coming from..
Thanks :)
Pure C debugger with low res program
Pure C debugger with low res program
I'm writing a Pure C program that runs in low resolution. It also disables the mouse.
However, when debugging using the Pure C debugger, the debugger doesn't seem to do anything to keep the mouse working, switch back to medium resolution when showing the debugger etc. So as soon as my program switches to low res and/or disables the mouse, the debugger basically becomes unusable.
I've tried playing around with the settings in the debugger (see picture) but it didn't help. Is this a known limitation or am I missing something?
However, when debugging using the Pure C debugger, the debugger doesn't seem to do anything to keep the mouse working, switch back to medium resolution when showing the debugger etc. So as soon as my program switches to low res and/or disables the mouse, the debugger basically becomes unusable.
I've tried playing around with the settings in the debugger (see picture) but it didn't help. Is this a known limitation or am I missing something?
- stephen_usher
- Site sponsor

- Posts: 7498
- Joined: Mon Nov 13, 2017 7:19 pm
- Location: Oxford, UK.
- Contact:
Re: Pure C debugger with low res program
I take it that you started the debugger when the machine was already booted in low res mode?
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
Re: Pure C debugger with low res program
Well, the debugger doesn't let me start it when in low res mode so I started it in medium res. When running my program from the debugger, it (my program) switches to low res.stephen_usher wrote: Sun Sep 20, 2020 4:01 pm I take it that you started the debugger when the machine was already booted in low res mode?
- stephen_usher
- Site sponsor

- Posts: 7498
- Joined: Mon Nov 13, 2017 7:19 pm
- Location: Oxford, UK.
- Contact:
Re: Pure C debugger with low res program
Oh, that'll be why then. I wonder why it won't start in low res mode. Sounds like a design failure.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
- thorsten.otto
- Posts: 148
- Joined: Mon Nov 04, 2019 2:20 am
Re: Pure C debugger with low res program
Did you ever try to design GEM dialog for low resolution? That's hardly possible in serious programs.
@sandord: you should try to turn off VDI graphics, maybe that helps.
Re: Pure C debugger with low res program
The funny thing is that when I click the checkbox, it doesn't respond. So apparently it cannot be disabled.thorsten.otto wrote: Sun Sep 20, 2020 6:15 pm @sandord: you should try to turn off VDI graphics, maybe that helps.
Re: Pure C debugger with low res program
Iirc, printed manual or online help (I don't remember which) states that "non-VDI" mode of Pure Debugger can only be used in the high-res mode.
Re: Pure C debugger with low res program
Thanks, that should explain the disabled checkbox then.czietz wrote: Sun Sep 20, 2020 7:27 pm Iirc, printed manual or online help (I don't remember which) states that "non-VDI" mode of Pure Debugger can only be used in the high-res mode.
I guess I'm going to need a better debugger
- thorsten.otto
- Posts: 148
- Joined: Mon Nov 04, 2019 2:20 am
Re: Pure C debugger with low res program
That makes sense. Apparently they write directly to the screen otherwise, but only have routines for mono-chrome mode to do so (the Pure-C shell does similar things when you switch to the User-Screen).czietz wrote: Sun Sep 20, 2020 7:27 pm Iirc, printed manual or online help (I don't remember which) states that "non-VDI" mode of Pure Debugger can only be used in the high-res mode.
That also explains your messed up screen: the VDI is not aware that your program switched the resolution. Maybe you can work around this by catching bus-error yourself, switching back to the original resolution in the handler, and then jump to whatever routine was installed before. That won't help though when trying to set breakpoints, i guess.
- thorsten.otto
- Posts: 148
- Joined: Mon Nov 04, 2019 2:20 am
Re: Pure C debugger with low res program
The only other debugger that i know of than can debug C-Code on a source level basis is gdb, and that only works on MiNT, and only partially. With all others you can just debug the generated assembly code.sandord wrote: Sun Sep 20, 2020 8:00 pm [I guess I'm going to need a better debuggerBut that would probably mean switching compilers
![]()