TMS All, especially Business

Is it possible, to name all threads you use?
The Delphi TThread Method NameThreadForDebugging('TMS_Thread_Name') would do this.

I have a current problem which I want to debug. Can you tell me the position in Sparcle/XData where can I do this right now? (I use the REST Server)
One good place to do so is using the middleware. Just add a generic middleware to your module, call NameThreadForDebugging and then forward the request in the chain using Next(Context).



procedure TForm4.XDataServer1GenericRequest(Sender: TObject;
  Context: THttpServerContext; Next: THttpServerProc);
begin
  TThread.NameThreadForDebugging(SomeName);
  Next(Context);
end;