maziac / DeZog

Visual Studio Code Debugger for Z80/ZX Spectrum.
MIT License
210 stars 34 forks source link

disassembly missing #53

Closed remy closed 3 years ago

remy commented 3 years ago

Describe the bug

Basically all the debug information is lost/empty. Not quite sure how to replicate perfectly, but having found the devtools error, I suspect it's an interpolation bug - though I thought that vscode did this for you (as the extension author), but I'm not 100% certain.

The error in devtools when I hit pause is:

Error: cannot open file:///%24%7BworkspceFolder%7D/%24%7BworkspceFolder%7D/%24%7BworkspceFolder%7D/disasm.asm. 
Detail: Unable to read file '/${workspceFolder}/${workspceFolder}/${workspceFolder}/disasm.asm' 

So it looks like the encoding isn't working for the vscode system variables.

This is my launch config for dezog:

{
      "type": "dezog",
      "request": "launch",
      "name": "Internal (sna)",
      "remoteType": "zsim",
      "zsim": {
        "zxKeyboard": true,
        "ulaScreen": true,
        "visualMemory": true,
        "vsyncInterrupt": true,
        "memoryModel": "ZX48K"
      },
      "rootFolder": "${workspceFolder}",
      "tmpDir": "${workspceFolder}",
      "sjasmplus": [
        {
          "path": "${fileDirname}/${fileBasenameNoExtension}.sld",
          "useFiles": true,
          "asm": "sjasmplus",
          "mainFile": "${file}"
        }
      ],
      "disassemblerArgs": {
        "esxdosRst": true
      },
      "commandsAfterLaunch": ["-assertion enable"],
      "load": "${fileDirname}/${fileBasenameNoExtension}.sna",
      "startAutomatically": true,
      "preLaunchTask": "snabuild"
    }

Version etc. (please complete the following information):

remy commented 3 years ago

FFS. I wish vscode was clearer when variables weren't found.

I had a typo in workspaceFolder 🤦