Thank you, you got me on the right track with this.
I use now this helper proc:
procedure testproc;
var a:integer;
begin
if TThread.currentthread = th then
a :=0; // dummy assignment to set breakpoint here
// you cannot write "exit" instead, doesnt work, probably due to optimization?
end;
"th" is a global helper variable, it points to the TThread instance.
I would be glad to contribute to the debugger, but I fear I dont have the skills, I am just playing around.
However the main problem to solve is the debugger doesnt understand properties; TThread.currentthread is a property.
If this where possible then "TThread.currentthread=th" could be used as a breakpoint condition.