Root > Reference > All Functions > DebugBreak

Procedure DebugBreak

Previous pageReturn to chapter overviewNext page   

Causes a breakpoint exception to occur in the current process.

 

Unit

ELowLevel

 

Syntax

 

Code (Delphi)

procedure DebugBreak;

 

Remarks

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.

 

Warning

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.

 

Examples

 

Code (Delphi)

if IsDebugged then

DebugBreak;

 

See also




Send feedback... Build date: 2021-02-14
Last edited: 2021-02-14
PRIVACY STATEMENT
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: https://www.eurekalog.com/help/eurekalog/topic_function_elowlevel_debugbreak.php