rolandshacks / vs64

C64 Development Environment for Visual Studio Code
Other
97 stars 16 forks source link

VICE not launching or attaching on debug #40

Closed torokze closed 1 year ago

torokze commented 1 year ago

Hi,

I have this debugger issue with VICE 3.7-win64. Neither attach nor launch works. The internal debugger works just fine. The VICE works. There are no multiple instances at the same time. I'm using Windows 11, VSCode 1.77.3, VS64 2.2.1

attach.vscode-app-1682831715579.log launch.vscode-app-1682831806691.log vice.log

rolandshacks commented 1 year ago

You could try the following:

torokze commented 1 year ago

I've tried these:

launch.json entry:


            "type": "vice",
            "request": "attach",
            "name": "Attach Vice",
            "hostname": "localhost",
            "port": 6502,
            "preLaunchTask": "${defaultBuildTask}"
        }```

The emulator starts but as soon as I hit F5 (attach vice) it quits in both cases.
rolandshacks commented 1 year ago

Let me try to reproduce it precisely... Which version and variant of VICE are you using?

rolandshacks commented 1 year ago

"Quits in both cases" means: the debugging session stops / detaches unexpectedly, but the VICE process keeps going?

rolandshacks commented 1 year ago

This, for example, is the 64bit GTK version working smoothly on Win11. (SDL-VICE works exactly the same way...)

grafik

rolandshacks commented 1 year ago

Another Idea: When installing VICE on Windows, there's the antivirus trying to shield your computer. Could you try to manually start to see if VICE is working as expected?

torokze commented 1 year ago

VICE 3.7 SDL The vice process quits completely. I'll try the GTK version ASAP.

torokze commented 1 year ago

The GTK version works as expected. Thanks.

rolandshacks commented 1 year ago

Hmmm. I'll check with the SDL version later today!

rolandshacks commented 1 year ago

I can reproduce the VICE-SDL crash on windows, but cannot explain. The only thing I could improve was the handling of the crash and the resulting ECONNRESET socket failure.

rolandshacks commented 1 year ago

Btw. it works seamlessly on Linux x64 with the SDL version of VICE. Seems to be a Win64/SDL/VICE bug.