Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breakpoints within threads not working properly #36

Open
acodervic opened this issue Feb 22, 2024 · 2 comments
Open

Breakpoints within threads not working properly #36

acodervic opened this issue Feb 22, 2024 · 2 comments

Comments

@acodervic
Copy link

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 !

@acodervic
Copy link
Author

I switch my haxe to latest(4.3.3) ,The problem still exists.

@nulld
Copy link
Member

nulld commented Feb 23, 2024

Try to reproduce via console interface please https://github.com/HaxeFoundation/hxcpp-debugger/wiki/Getting-started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants