【问题标题】:Run and Debug problems in Visual Studio Code using haxe使用 haxe 在 Visual Studio Code 中运行和调试问题
【发布时间】:2021-08-03 02:12:48
【问题描述】:

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

编译.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"
        }
    }
]

有人遇到过类似的问题吗?

【问题讨论】:

    标签: visual-studio-code haxe hashlink


    【解决方案1】:

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


    这是一个已知问题:

    HL debugger no longer works in latest vscode #97

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

    【讨论】:

    • 干杯!我确认新的更新确实解决了这个问题。非常感谢!
    猜你喜欢
    • 2020-02-04
    • 2016-07-29
    • 2023-01-29
    • 2019-08-19
    • 2022-12-16
    • 2019-10-31
    • 1970-01-01
    • 2017-01-27
    • 2020-12-27
    相关资源
    最近更新 更多