-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
- os: ubuntu24 linux x64
- hashlink: 1.16 (Download at https://github.com/HaxeFoundation/hashlink/releases/tag/latest HashLink Nightly Build)
- vscode-hashlink-debugger: 1.4.33
- haxe: Haxe Compiler 4.3.3
import sys.thread.Thread;
import sys.thread.Mutex;
import sys.thread.Lock;
class HelloWorld {
static function main() {
trace("Hello, World from Haxe!");
test1_BasicThreads();
}
static function test1_BasicThreads() {
var threads:Array<Thread> = [];
for (i in 0...3) {
var thread = Thread.create(function() {
var threadId = i;
trace('thread $threadId start'); <---- Set vscode breakpoint at this line
Sys.sleep(0.5);
trace('start $threadId end');
});
threads.push(thread);
}
}
}
build.hxml
-hl hl_output/HelloWorld.hl
-main HelloWorldtasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "Build HashLink Debug",
"type": "haxe",
"args": "active configuration",
"problemMatcher": "$haxe",
"group": "build"
}
]
}launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "HashLink (launch)",
"request": "launch",
"type": "hl",
"cwd": "${workspaceFolder}",
"preLaunchTask": {
"type": "haxe",
"args": "active configuration"
},
"program": "${workspaceFolder}/hl_output/HelloWorld.hl"
}
]
}console out:
HelloWorld.hx:7: Hello, World from Haxe!
//hashlink crashed and process stopReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels