arthwang / vsc-prolog

A VS Code extension that provides language support for prolog
MIT License
95 stars 21 forks source link

vscode debug adapter process has terminated unexpectedly #16

Open lamba92 opened 6 years ago

lamba92 commented 6 years ago

Whenever I run the debug an error box in the bottom right shows vscode debug adapter process has terminated unexpectedly. Well i have no idea why. Here's the debug configuration file:

{
    // Usare IntelliSense per informazioni sui possibili attributi.
    // Al passaggio del mouse vengono visualizzate le descrizioni degli attributi esistenti.
    // Per ulteriori informazioni, visitare: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [

        {
            "name": "Debug Prolog Files",
            "type": "prolog",
            "request": "launch",
            "runtimeExecutable": "C:\\Users\\lamba\\OneDrive\\Developing\\swipl\\bin\\swipl.exe",
            "runtimeArgs": [],
            "env": {},
            "program": "${file}",
            "cwd": "${fileDirname}",
            "startupQuery": "debug",
            "stopOnEntry": true,
            "traceCmds": {
                "continue": [
                    "leap",
                    "l"
                ],
                "stepover": [
                    "skip",
                    "s"
                ],
                "stepinto": [
                    "creep",
                    "c"
                ],
                "stepout": [
                    "up",
                    "u"
                ]
            }
        }
    ]
}

Here a snippet of the IDAStar.pl file i need to debug:

...
debug:- 
  idaStar(S),
  write(S).
...
arthwang commented 6 years ago

It seems to be caused by the new pr version. Now I've reverted to previous version. Please let me know if it's okay now.

lamba92 commented 6 years ago

Works like a charm now, thanks! I had few problems as well after the update because I had not installed http stuff from the swipl installer (Windows here). I ran again the installer with the complete setup and went ok. I'd recommend to add this requirement in the readme.