Debug your MSX with VSCode

Page 1/6
| 2 | 3 | 4 | 5 | 6

Par S0urceror

Master (141)

Portrait de S0urceror

12-07-2020, 08:24

Would it not be great to do our debugging from within Visual Studio Code?

I have forked the fabulous Dezog debugger for the Spectrum and made it compatible with OpenMSX. Now you can code, compile, run and debug all with a modern debugging interface!

Check out the capabilities.

You can find the code on my GitHub. Please be aware this is still a bit experimental and not all features have been implemented yet. But it is already very promising!

!login ou Inscrivez-vous pour poster

Par ToriHino

Hero (641)

Portrait de ToriHino

12-07-2020, 09:50

Nice! That looks indeed very usable, for sure am going to try this.

Par Manuel

Ascended (17503)

Portrait de Manuel

12-07-2020, 09:55

Wow, that looks great!

Par S0urceror

Master (141)

Portrait de S0urceror

12-07-2020, 10:27

Manuel wrote:

Wow, that looks great!

Indeed. I have now implemented the Debug Console as well.
You can now write any OpenMSX console command straight from Visual Studio Code.

Like:

-e cpuregs
AF =0042  BC =00FF  DE =0052  HL =0103
AF'=F010  BC'=04F3  DE'=550C  HL'=71D7
IX =6678  IY =0144  PC =0D6D  SP =D9E3
I  =00    R  =2C    IM =01    IFF=07
-e openmsx_info version
openMSX 0.15.0

Par Bengalack

Champion (302)

Portrait de Bengalack

12-07-2020, 10:54

Nice! This is a great addition to the growing set of tools made by the community. Love the hover-over Smile

Par Thom

Hero (658)

Portrait de Thom

12-07-2020, 11:37

Awesome, this is really useful.

Par S0urceror

Master (141)

Portrait de S0urceror

12-07-2020, 18:11

I’ll prepare a proper release soon. With a package that you can easily install plus instructions how to use it in your projects.

Just a couple of changes in launch.json and selecting the right run target starts the debugger within vscode and connects with OpenMSX.

I can now do my MSX development, like C+FusionLib or Assembly+SjasmPlus entirely within VSCode, before running it on the real hardware. Cool

Par albs_br

Master (199)

Portrait de albs_br

12-07-2020, 18:27

That's what I was looking for!

Par QBee Sam

Master (243)

Portrait de QBee Sam

13-07-2020, 22:09

S0urceror wrote:

I’ll prepare a proper release soon. With a package that you can easily install plus instructions how to use it in your projects.

Just a couple of changes in launch.json and selecting the right run target starts the debugger within vscode and connects with OpenMSX.

I can now do my MSX development, like C+FusionLib or Assembly+SjasmPlus entirely within VSCode, before running it on the real hardware. Cool

Thank you in advance!!!

Par S0urceror

Master (141)

Portrait de S0urceror

14-07-2020, 09:02

I have just released the first pre-release of Dezog for OpenMSX. You can find it here.

I have also included (minimal) instructions on how to use it. Make sure you generate .list files and add them to Visual Studio Code's launch.json.

I am working with Maziac, the original author of Dezog, to merge it with his wonderful initiative. Once that is complete you'll find it in the Visual Studio Code Marketplace.

Now you just install it manually:
code --install-extension dezog-1.3.1.vsix

Par Thom

Hero (658)

Portrait de Thom

16-07-2020, 10:49

Does it only work with Sjasmplus?

Page 1/6
| 2 | 3 | 4 | 5 | 6