[SOLVED] Debugging mode doesn't start anymore (using HashLink and Visual Studio Code)

Hi!

I’ve noticed that Visual Studio Code did an automatic update (I saw a “what’s new” tab when I opened it). Since then (yesterday), if I try to run the game from Visual Studio with F5, it compiles fine, but it just doesn’t start. It runs fine if I start it from cmd:

hl mygame.hl

I’m using HashLink and the default configuration:

launch.json:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "HashLink (launch)",
            "request": "launch",
            "type": "hl",
            "hxml": "build.hxml",
            "cwd": "${workspaceFolder}",
            "preLaunchTask": {
                "type": "haxe",
                "args": "active configuration"
            }
        },
        {
            "name": "HashLink (attach)",
            "request": "attach",
            "port": 6112,
            "type": "hl",
            "hxml": "build.hxml",
            "cwd": "${workspaceFolder}",
            "preLaunchTask": {
                "type": "haxe",
                "args": "active configuration"
            }
        }
    ]
}

In the Output tab I can see this:

Client connected
Client disconnected

And also some errors, but these were there before and it worked fine:

[Error - 5:05:59 PM] Request textDocument/hover failed.
  Message: Error: No completion point was found
  Code: -32603 

Any idea on how to make it start? If I start it myself from the command line, I can’t see the debugging info in the VS, so it’s not really helpful…

Having the same issue here. Tried building the latest HL + git version of Heaps, as well as rolling back to RC2 and RC1. I can only assume it’s an issue with the latest update of the VSCode plugin.

EDIT 7/6/2019:
I can confirm my setup works with the HashLink Debugger 0.7.1 update that was released today.

1 Like

Now it works for me as well. Thank you for your edit, for some reason it did NOT automatically updated the HashLink Debugger plugin for me, so I had to uninstall it and install again. If it weren’t for your post, I would have never tried to check for newer versions myself :wink: