hxcpp-debugger icon indicating copy to clipboard operation
hxcpp-debugger copied to clipboard

Break point inside thread function does not work

Open hypergeome opened this issue 2 years ago • 2 comments

I try to step debug an openfl app targetting cpp on Windows. I set break point inside a thread function. It never stop at that break point. Break poin on main thread works though.

hypergeome avatar Jun 06 '22 06:06 hypergeome

Could you emerge minimal sample for reproducing? I will take a look

nulld avatar Jun 06 '22 06:06 nulld

Here you go. DemoListBug.zip

You will see I create thread using ENTThread in MainView. It is actaully sys.thread.Thread. The code is from C:\HaxeToolkit\haxe\std\cpp_std\sys\thread from haxe. 4.2.5. I did that since when I coded, I used haxe 4.0.5 and thread has no event loop yet while I needed to us TImer in Thread.

Anyway, I think you can change ENTThread to sys.thread.Thread. It has the same functionality.

Thank you in advance.

hypergeome avatar Jun 06 '22 08:06 hypergeome