Ciao, ho fatto come mi hai segnalato

try

TCP.Connect(); // è l'istruzione che genera l'errore nel Debug

except
end;

Una volta avviato si presenta questa finestra di errore:

Debugger Exception Notification

Project xyz.exe raised excpetion class EIdSocketError with message 'Socket Error # 11004'. Process stopped. Use Step or Run to continue.