Root > Reference > All Functions > DebugBreak

Procedure DebugBreak

Previous pageReturn to chapter overviewNext page   

Causes a breakpoint exception to occur in the current process.







Code (Delphi)

procedure DebugBreak;



This routine is used to break into debugger. This allows the calling thread to signal the debugger - for example to handle the exception.


If you are running your project under debugger and the debugger stops inside this function - this means that EurekaLog is notifying debugger about a problem (possibly about a fatal one). You can the check call stack to understand what this problem is, and possibly investigate the issue before default handling/processing will take place. You can also continue the execution to let EurekaLog handle the problem. Naturally, this "break into debugger" behaviour does not happen outside of the debugger.



This function raises exception! If there is no debugger attached - then the exception will go into your exception handlers, which can cause unwanted error dialogs or even termination of the process. Always check if debugger is present before calling this function.




Code (Delphi)

if IsDebugged then



See also

Send feedback... Build date: 2023-09-11
Last edited: 2023-09-11
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.

Permanent link to this article: