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


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

Registered: Aug 2011
Posts: 13
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 08:18
oziphantom

Registered: Oct 2014
Posts: 153
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 21: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 07:50
Endurion

Registered: Mar 2007
Posts: 51
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 15:14
Groepaz

Registered: Dec 2001
Posts: 8153
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 18:40
Martin Piper

Registered: Nov 2007
Posts: 376
Would that be the undocumented "hunt through the source" binary interface?
2017-09-15 19:43
Groepaz

Registered: Dec 2001
Posts: 8153
indeed (although there is a bit of documentation in comments in the code)
2017-09-17 03: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 03:32
Groepaz

Registered: Dec 2001
Posts: 8153
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 07:26
Endurion

Registered: Mar 2007
Posts: 51
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
Didi/Laxity
nice/Nigaz
Groepaz
Mason/Unicess
Toggle/Padua
Guests online: 43
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.7)
3 Coma Light 13  (9.6)
4 Quad Core 100%  (9.6)
5 The Shores of Reflec..  (9.6)
6 Lunatico  (9.6)
7 Comaland 100%  (9.5)
8 Incoherent Nightmare  (9.5)
9 Wonderland XII  (9.5)
10 Comaland  (9.5)
Top onefile Demos
1 Pandemoniac Part 2 o..  (9.6)
2 Field Sort  (9.6)
3 Dawnfall V1.1  (9.5)
4 Daah, Those Acid Pil..  (9.5)
5 Treu Love [reu]  (9.4)
6 Dawnfall  (9.2)
7 Veterans of Style  (9.2)
8 KAOS 64  (9.2)
9 One-Der  (9.2)
10 Game of Thrones [2sid]  (9.2)
Top Groups
1 Blazon  (9.5)
2 Booze Design  (9.4)
3 Censor Design  (9.4)
4 Oxyron  (9.4)
5 Crest  (9.3)
Top Logo Graphicians
1 Pal  (9.5)
2 Yazoo  (9.3)
3 Mermaid  (9.2)
4 Elko  (9.2)
5 Jailbird  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2017
Page generated in: 0.315 sec.