Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Visual Studio Code debugger
2017-09-09 21:48
metalux

Registered: Aug 2011
Posts: 17
Visual Studio Code debugger

Has there been any attempts to write a debugger for Visual Studio Code with its Debugging API? Would it even be possible? Maybe it's possible to use the remote monitor in VICE. Any ideas? See https://code.visualstudio.com/docs/extensions/example-debuggers.
2017-09-10 06:18
oziphantom

Registered: Oct 2014
Posts: 490
You would need to make a separate program that is debug adapter program that translates the VS Code debug protocol to VICE Remote Monitor. You could do it, GDB and a Monitor are not that different conceptually, but VS Code is aimed at high level languages more than the needs of ASM. No Memory view for example.

TASS64 has this handy feature that it will output a listing with the filename, line number and hex address. So your go between program could use that listing to map VICE address back to source file and source line.

I would want a solid 'Itellisense' plugin first.
2017-09-10 19:49
sP0CkEr2

Registered: Sep 2017
Posts: 2
This is already happening here.

https://gitlab.com/Retro65/kickass-vscode-ext

I replied on the same question on FB yesterday.

Long Term the strategy is to add debugging, either through VICE or C64Debugger.

Right now, the focus is on Syntax and Developer helpers.
2017-09-14 05:50
Endurion

Registered: Mar 2007
Posts: 73
It could be done via the remote monitor feature of VICE, however it's a really bad interface for a machine. Even subtle changes in the output (one line more, etc.) break the interface.

C64Studio uses that interface, and while it usually works 99% there are corner cases. I'm so far as to work on a own simple emulator to get solid debugging going.
2017-09-14 13:14
chatGPZ

Registered: Dec 2001
Posts: 11386
as for VICE, debuggers should use the binary interface, not the remote monitor.... it should be fairly easy to expand it a bit so you can get the entire machine state through it. (it should be a whole lot faster too)
2017-09-15 16:40
Martin Piper

Registered: Nov 2007
Posts: 722
Would that be the undocumented "hunt through the source" binary interface?
2017-09-15 17:43
chatGPZ

Registered: Dec 2001
Posts: 11386
indeed (although there is a bit of documentation in comments in the code)
2017-09-17 01:08
sP0CkEr2

Registered: Sep 2017
Posts: 2
Uggh. If I am going to do that then I would much rather interface with C64Debugger than VICE (yes I know C64DB uses VICE). If the Remote monitor works 99% of the time, is that not "good enough" for most. There are edge cases everywhere, don't want to stop progress just because of those.
2017-09-17 01:32
chatGPZ

Registered: Dec 2001
Posts: 11386
Quote:
If the Remote monitor works 99% of the time, is that not "good enough" for most.

the problem with that is that the monitor output is a moving target, it may change without notice at any time. the binary interface wont. binary interface is also much simpler (and does not require to parse the monitor output) so its probably less work to read through the source to understand how to use it :)
2017-09-18 05:26
Endurion

Registered: Mar 2007
Posts: 73
What binary interface?

The $02 one that only supports mem dumps and has a really really unfortunate decision on the parameters it requires?
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Flashback
HOL2001/Quantum
bOOZElEE
Didi/Laxity
Guests online: 81
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 No Listen  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.7)
4 Acidchild  (9.7)
5 Cash  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.045 sec.