-
Notifications
You must be signed in to change notification settings - Fork 0
Kha Compatibility
To work with Kha with this extension we use a source. It works with up to date versions of vscode
- Install the git version of Kha using haxelib - (
haxelib git kha https://github.com/Kode/Kha.git
) - Open up the command palette in vscode by pressing
F1
and typeSetup Kha
- Set the path to the location of the above. You can find this out by typing
haxelib path kha
. Only include the ROOT of the directory
You should be able to create projects, debug and release. Default is set to windows
in the tasks.json
folder. Change the completion file using the selector provided at the bottom right of vscode where the cog icon is.
Press F1
-> Search for Create a Project
-> Select Kha
There are 2 options for debuggers currently:
To use the flash debugger add project.addDefine('fda');
to the khafile.js
. I've added the necessary launch.json
settings to the project template created with this extension but should it not work, double check that the paths are correct.
To debug using the chrome debugger just install the chrome extension. Currently there's an issue which requires you to press the Play
button twice to trigger the browser to open. I haven't spent any time looking into this yet, but it is still possible to use.
- [CPP Debugger]
For now, the best option is the actual Visual Studio
which I believe follows kha's "recommended" ways.
I have attempted to the haxe CPP debuggers to work with Kha but couldn't fully get to work right.