Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user maak ! (Registered 2024-04-18) 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: 16
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: 478
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: 72
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: 11100
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: 631
Would that be the undocumented "hunt through the source" binary interface?
2017-09-15 17:43
chatGPZ

Registered: Dec 2001
Posts: 11100
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: 11100
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: 72
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
Guests online: 71
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.9)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 S!R  (9.9)
3 Mr Zero Page  (9.8)
4 Antitrack  (9.8)
5 OTD  (9.8)

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