Using a trace function with multiple threads

Hello all,

I’d like to know if the set_trace_func function works on a “per
thread” basis or if it works globally.

I have a multithreaded application that is required to do some
checking inside a trace function. This checking requires having access
to the current thread’s context to determine its class type, name
based on a variable, …

Is there a way to get a hold (an address, an ID, …) to the active
thread’s context within a global trace function?

Thanks a lot,

Francis

Read the source code of the debugger. You find your answer there.

its the "debugger.rb" file :slight_smile: