hashlink-debugger
hashlink-debugger copied to clipboard
Visual Studio Code Debugger for Haxe/HashLink applications
HashLink Debugger
This VSCode extension allows you to debug HashLink JIT applications.
Only available on VSCode 64 bit
Building from Source
The following instructions are only relevant for building the extension from source and are not required when installing it from the marketplace.
Compiling
You will need Haxe 4.
Additionally, you need to install these dependencies:
haxelib install vshaxe
haxelib install vscode
haxelib install vscode-debugadapter
haxelib install hscript
haxelib install format
Once all dependencies are ready, you should be able to compile with haxe build.hxml
Commandline version
Instead of the vscode plugin, you can also compile and run a commandline version, similar to gdb
:
Debugger running in HashLink;
cd hashlink-debugger/debugger
haxe debugger.hxml
hl debug.hl /my/path/filetodebug.hl
You can then use gdb-like commands such as run/bt/break/etc. (see sources)
The commandline debugger can also be compiled and run using nodejs, by doing:
cd hashlink-debugger/debugger
haxe node_debug.hxml
npm install
node debugger.js /my/path/filetodebug.hl
Installing
Please note that VSCode does not allow users to have a specific directory for a single extension, so it's easier to clone this repository directly into the extensions
directory of VSCode (C:\Users\<you>\.vscode\extensions
on Windows).
Supported Platforms
Supports Windows, Linux and Mac platforms. For OSX/MacOS make sure your Hashlink version is 1.12.0
or higher and you ran make codesign_osx
during installation.