Debug your MSX with VSCode

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

By S0urceror

Expert (112)

S0urceror's picture

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 or register to post comments

By ToriHino

Hero (543)

ToriHino's picture

12-07-2020, 09:50

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

By Manuel

Ascended (16702)

Manuel's picture

12-07-2020, 09:55

Wow, that looks great!

By S0urceror

Expert (112)

S0urceror's picture

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

By Bengalack

Master (135)

Bengalack's picture

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

By Thom

Hero (627)

Thom's picture

12-07-2020, 11:37

Awesome, this is really useful.

By S0urceror

Expert (112)

S0urceror's picture

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

By albs_br

Expert (68)

albs_br's picture

12-07-2020, 18:27

That's what I was looking for!

By QBee Sam

Master (218)

QBee Sam's picture

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!!!

By S0urceror

Expert (112)

S0urceror's picture

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

By Thom

Hero (627)

Thom's picture

16-07-2020, 10:49

Does it only work with Sjasmplus?

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