Skip to content

Debugging doesn't start #105

Description

@muchitto

I'm trying out the debugger after a short break from using Haxe/Hashlink and it seems to not work anymore. When I try to debug, it builds using the build.hxml file but doesn't start the actual program for debugging. It runs fine if I just run the .hl file from the command line, tho.

My build.hxml:

-cp src 
-m Main

-lib heaps
-lib hlsdl

--hl bin/app.hl

--debug

My src/Main.hx:

class Main extends hxd.App {
    public static function main () {
        new Main();
    }
}

My .vscode/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",
            "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"
            }
        }
    ]
}

OS is Windows 10, Haxe version 4.2.4, Hashlink is the latest from github and my vscode version is 1.62.3.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions