运行 和 Visual Studio 代码中使用 haxe 的调试问题

Run and Debug problems in Visual Studio Code using haxe

我目前正在使用 Visual Studio 代码在带有堆的 Haxe 中进行编码。后者最近更新到 1.56 版,现在给我一个奇怪的问题,我无法解决。在更新之前,我能够单击 运行 并使用 Hashlink 进行调试以打开我游戏的 window。更新后,当我 运行 和调试时它不再打开 window,尽管 compile.hxml 和 launch.json 与以前完全相同:

compile.hxml:

-cp src
-lib heaps
-lib hlsdl
-hl main.hl
-main Main

.json

"version": "0.2.0",
"configurations": [
    {
        "name": "HashLink (launch)",
        "request": "launch",
        "type": "hl",
        "cwd": "${workspaceFolder}",
        "preLaunchTask": {
            "type": "haxe",
            "args": "active configuration"
        }
    },
    {
        "name": "HashLink (attach)",
        "request": "attach",
        "port": 6112,
        "type": "hl",
        "cwd": "${workspaceFolder}",
        "preLaunchTask": {
            "type": "haxe",
            "args": "active configuration"
        }
    }
]

有人遇到类似问题吗?

更新: hashlink-debugger 1.1.2 已发布,应该可以解决问题。


这是一个已知问题:

HL debugger no longer works in latest vscode #97

您可以降级到以前的 VSCode 版本或订阅该问题并等待 hashlink-debugger 更新。