Skip to content

Internal debugging tools for the Haxe VSCode Extension

License

Notifications You must be signed in to change notification settings

vshaxe/vshaxe-debug-tools

Repository files navigation

Haxe Extension Debug Tools

CI

This is a VSCode extension that exists solely to aid the development of the vshaxe extension.

Features

  • haxe-formatter test file highlighting

    haxe-formatter uses a custom .hxtest file extension for unit test definitions. These files are highlighted by the debug tools:

  • Cursor Byte Offset Status Bar Item

    The debug tools add a status bar item displaying the current cursor byte offset when in a Haxe file. Haxe --display queries require the cursor byte offset as an argument, making this feature very useful when isolating and reproducing bugs.

Installation

  1. Navigate to the extensions folder (C:\Users\<username>\.vscode\extensions on Windows, ~/.vscode/extensions otherwise)

  2. Clone this repo: git clone --recursive https://github.com/vshaxe/vshaxe-debug-tools.

  3. Change current directory to the cloned one: cd vshaxe-debug-tools.

  4. Install the dependencies: npm install

  5. To build everything:

    npx lix run vshaxe-build --target all
    
  6. After modifying and rebuilding the extension itself, restart VSCode, reload the window or run a debug instance with F5 (standard vscode workflow).