vshaxe / hashlink-debugger

Visual Studio Code Debugger for Haxe/HashLink applications
https://hashlink.haxe.org/
MIT License
57 stars 23 forks source link

Usage instructions #82

Closed NQNStudios closed 4 years ago

NQNStudios commented 4 years ago

Are there usage instructions somewhere I'm missing? Can they be added to the README.md and info page in the VSCode extension browser?

I mean just on a simple level, how do I launch my project and interact with the debugger. Do I need to add a launch configuration like with the hxcpp debugger? What does that configuration look like?

I also tried searching the command palette for anything related to the extension and didn't find anything.

rcstuber commented 4 years ago

If you installed the extension properly, it should let you create a launch.json for the Hashlink environment or add said configuration automatically. You should best have the Haxe extension pack installed: https://marketplace.visualstudio.com/items?itemName=vshaxe.haxe-extension-pack

VSHaxe

Below is what get's created. Then it's just like using any other VSCode debugger.

// launch.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"
            }
        }
    ]
}
rcstuber commented 4 years ago

Can this be closed?

NQNStudios commented 4 years ago

yeah, thanks