Skip to content

Multi-threading fix for linux debugging#962

Open
m0rkeulv wants to merge 1 commit into
HaxeFoundation:masterfrom
m0rkeulv:dev/multi-threading-linux
Open

Multi-threading fix for linux debugging#962
m0rkeulv wants to merge 1 commit into
HaxeFoundation:masterfrom
m0rkeulv:dev/multi-threading-linux

Conversation

@m0rkeulv

@m0rkeulv m0rkeulv commented Jul 22, 2026

Copy link
Copy Markdown
Member

Sorry, This PR was made by mistake, i was intending to merge it into my own master branch in my own fork, but now that its made here i might as well leave it here and get some feedback / help.

The backstory:
I am trying to build a Hashlink Debugger and when i try to debug on linux things crashes when i test multi-threaded code. my understanding is that it happens when a thread different than the main thread reaches a breakpoint and since the thread is not traced it crashes. This PR makes sure that new threads are traced (ptrace) to avoid the crash and be able to stop in breakpoints in other threads.

if this happen to solve the linux multi-thread debugging issue in an acceptable way feel free to remove all the AI generated comments explaining how the fix works. they where mostly useful for myself trying to understand how the AI suggested fix actually worked.

@m0rkeulv m0rkeulv changed the title Multi-threading fix for linux debugger Multi-threading fix for linux debugging Jul 22, 2026
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

Successfully merging this pull request may close these issues.

1 participant