WIP - ZEsarUX remote debugger

Show us your work, thrill and amaze us :)

Moderator: Programming Moderators

Post Reply
SavourySnaX
Posts: 17
Joined: Mon May 29, 2017 7:31 pm

WIP - ZEsarUX remote debugger

Post by SavourySnaX » Fri Jun 02, 2017 11:47 am

Hi,

I've had a quick play with ZEsarUX (@chernandezba great work btw).

I know a few people are working on these (or IDEs), but I`m impatient :)


(Note turn on subtitles for explanation - No audio)

I`ll stick the code up on github over the weekend (http://github.com/SavourySnaX/Remote-Debugger/) (its pretty simplistic), note it is windows only (due to my use of winforms, win docks and remote window capture). It needs the latest (source code) version of ZEsarUX.

I need to investigate adding breakpoint support, however this is complicated at present due to breakpoints causing the ZEsarUX emulator to go into menu mode - which isn't desirable - or I`m doing something wrong :) ).
Last edited by SavourySnaX on Sat Jun 03, 2017 9:12 am, edited 1 time in total.

User avatar
chernandezba
Posts: 229
Joined: Mon May 29, 2017 8:14 pm

Re: WIP - ZEsarUX remote debugger

Post by chernandezba » Fri Jun 02, 2017 12:00 pm

Great job! About breakpoints, execute "enter-cpu-step" (pauses emulation), then "run". After that, telnet is suspended, and resumed again when a breakpoint is fired (and the menu won't open)
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://github.com/chernandezba/zesarux

User avatar
chernandezba
Posts: 229
Joined: Mon May 29, 2017 8:14 pm

Re: WIP - ZEsarUX remote debugger

Post by chernandezba » Fri Jun 02, 2017 12:01 pm

BTW tell me about that write-mapped-memory-ex command ;)
----

ZEsarUX
ZX Second-Emulator And Released for UniX
https://github.com/chernandezba/zesarux

SavourySnaX
Posts: 17
Joined: Mon May 29, 2017 7:31 pm

Re: WIP - ZEsarUX remote debugger

Post by SavourySnaX » Fri Jun 02, 2017 12:06 pm

I'll give it another go, tonight. My first experiments involved setting a breakpoint and then running randomize use 32768, it fired... but returned back at 2 instructions beyond that.. which was a bit odd :)

Write-memory-mapped-ex (wmmex).
wmmex address length *hex-bytes

Basically just adds a length and loops through all bytes (much quicker than sending each byte one at a time).
However I had to increase the buffer sizes from 1024 to 65536*4 to allow enough space to send a reasonably long chunk of data.

User avatar
Uto
Posts: 57
Joined: Tue May 30, 2017 9:33 am

Re: WIP - ZEsarUX remote debugger

Post by Uto » Fri Jun 02, 2017 12:55 pm

I....WANT....THAT.... :lol:

Awesome work, I had started something similar myself but lack of time and too many projects didn't let me progress. Now it's too late for me, I'll use yours :-D

SavourySnaX
Posts: 17
Joined: Mon May 29, 2017 7:31 pm

Re: WIP - ZEsarUX remote debugger

Post by SavourySnaX » Sat Jun 03, 2017 9:10 am

Source code : http://github.com/SavourySnaX/Remote-Debugger/
First Windows Release : http://github.com/SavourySnaX/Remote-De ... rsion0.0.0

You will need the latest source code version of ZEsarUX (Cesar reworked the wmm to remove the need for my hack :) )

It is still very much a Proof Of Concept!!

User avatar
jsj
Posts: 19
Joined: Tue May 30, 2017 3:42 am

Re: WIP - ZEsarUX remote debugger

Post by jsj » Sat Jun 03, 2017 4:47 pm

Impressive!!!

SavourySnaX
Posts: 17
Joined: Mon May 29, 2017 7:31 pm

Re: WIP - ZEsarUX remote debugger

Post by SavourySnaX » Sat Jun 03, 2017 7:30 pm

New Release : http://github.com/SavourySnaX/Remote-De ... ses/latest

Has more configuration plus basic breakpoint support. (Also now works if ZEsarUX isn't running before hand -- i hope)

Me rambling on about the debugger (I`ll try and improve this if I do another video!)
https://www.youtube.com/watch?v=on-aeVxCAsI

Post Reply