Skip to content

Breakpoints within threads not working properly #36

Description

@acodervic

Breakpoints within threads not working properly.

  • Os: linux x64 ubuntu 20
  • Haxe Version: 4.0.5

This is my code .

import sys.thread.Thread;
class Main {
	static function printMessage(message:String = "Default Message") {
		trace(message);
	}
	static function main() {
		printMessage();
	  #if (target.threaded)
		sys.thread.Thread.create(() -> {
		while (true) {
			trace("other thread");
			Sys.sleep(1);
				printMessage();
		}
		});
		Sys.sleep(300);
		#end
		
	}
}

my build-cpp.hxml

-cp src
-D analyzer-optimize
--debug
-lib hxcpp-debug-server
-main Main
--cpp bin/cpp

build cpp appliction with debug info :

 haxe build-cpp.hxml 

My vscode debugger config is :

		{
			"name": "HXCPP",
			"type": "hxcpp",
			"request": "launch",
			"program": "${workspaceFolder}/bin/cpp/Main-debug"
		}

Start the debugger . The breakpoint in another thread is not working .
screenscast_20240222_214837

Please help me thanks !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions