Closed perweij closed 2 years ago
When you say the emulator graphics get messed up, do you mean while running, or while paused?
Thank you for providing your version information. :)
Hello. I think I've traced this down and I think it's an issue with runahead. This is a trick that the debugger uses so you can see the entire next frame, but it doesn't always work because it relies on VICE's save states, which can be glitchy. Can you try disabling it?
I'll try to see if there's an issue upstream with VICE
I've been told that plus4 snapshots are broken in VICE, so please just set runahead to false in your settings. I'm not sure right now if I'll prevent the debugger from using them, or fix the problem in VICE.
I changed the code recently so that it ignores the runahead setting for platforms which don't support it very well
Thanks! Really sorry for not following up here! Your work inspired me, and I sort of got entangled in making a Vice-debugger myself for Emacs.
On Sun, May 29, 2022 at 10:39 PM empathicqubit @.***> wrote:
I changed the code recently so that it ignores the runahead setting for platforms which don't support it very well
— Reply to this email directly, view it on GitHub https://github.com/empathicqubit/vscode-cc65-debugger/issues/89#issuecomment-1140520942, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIVP7WR6SF64JEAKXFSK4DVMPIX5ANCNFSM5K6OSLIQ . You are receiving this because you authored the thread.Message ID: @.***>
Cool! Do you have a public link?
Thanks, but it’s nothing as fancy as your work I can tell you!
I will make it public once I’ve figured out how to make “preset breakpoints” (i.e. breakpoints set before launching Vice) work satisfyingly
lör 2 juli 2022 kl. 13:34 skrev empathicqubit @.***>:
Cool! Do you have a public link?
— Reply to this email directly, view it on GitHub https://github.com/empathicqubit/vscode-cc65-debugger/issues/89#issuecomment-1172883600, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADIVP7QNCWOZDLUWDEPPGNTVSASNBANCNFSM5K6OSLIQ . You are receiving this because you authored the thread.Message ID: @.***>
I am testing VS65 Debugger with the Vice Plus4 emulator.
For some reason, the emulator graphics gets strangely messed up when the program is autostarted by the IDE. I'm not sure if it's because of some bad state on my machine, or if it's there is a bug in VS65 Debugger - or perhaps I am using it wrongly.
If I copy the Vice invocation command which is shown in the internal terminal (including all arguments), and autostart the program binary which was built by codium above manually from a terminal, the graphics look good. Strange. I have a hypothesis that the problems are caused by some commands which are sent from the IDE via the remote monitor port to the emulator after the autostart.
I have created a minimal Plus4 code project that reproduces the error, and have included screenshots: https://github.com/perweij/plus4-debug
It should be enough to check out that project, open the directory in codium, and start the debugger.
I am running: