Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RetroDebugger Support #79

Open
3vi1 opened this issue Oct 28, 2024 · 1 comment
Open

RetroDebugger Support #79

3vi1 opened this issue Oct 28, 2024 · 1 comment

Comments

@3vi1
Copy link

3vi1 commented Oct 28, 2024

It would be great if VS64 could also support launching the app with RetroDebugger (https://github.com/slajerek/RetroDebugger) via the debug configurations. It wouldn't even need to necessarily support the VICE hooks back to be a useful addition.

RetroDebugger

I was able to get this to kind of work in Code by adding a node-type configuration to my launch.json, with a prelaunch task of "retrodebugger", which I manually added to tasks.json as a shell task that calls the apps with the correct arguments. Still, it would be nice if such a debug configuration could be built automagically, like the VICE configurations.

Note: I opened slajerek/RetroDebugger#69 over on his issue tracker because RetroDebugger doesn't seem to properly handle the command line arguments on Linux in its current state. This might not be a problem on the Windows build though, so at least Windows users might get immediate benefit.

@3vi1
Copy link
Author

3vi1 commented Nov 4, 2024

After fixing the buffer overflow in RetroDebugger, this works fairly decently just with the node task on Linux.

tasks.json:

{
    "tasks": [
        {
            "type": "vs64",
            "action": "build",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "label": "build project"
        },
        {
            "label": "retrodebugger",
            "type": "shell",
            "command": "retrodebugger",
            "args": [
                "${workspaceFolder}/build/${workspaceFolderBasename}.prg"
            ]
        }
    ]
}

Configuration to add to launch.json:

        {
            "name": "Launch RetroDebugger",
            "request": "launch",
            "type": "node",
            "preLaunchTask": "retrodebugger",
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant