Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Die Delphi-IDE (https://www.delphipraxis.net/62-die-delphi-ide/)
-   -   System.DebugHook (https://www.delphipraxis.net/183858-system-debughook.html)

Der schöne Günther 10. Feb 2015 08:59

System.DebugHook
 
Die Dokumentation zu System.DebugHook spricht
Zitat:

DebugHook is 0 when an application operates outside the IDE debugger. DebugHook is 1 when an application operates inside the IDE debugger.
Bei mir ist es grade 2 (XE7, Win32). Und was heißt das jetzt? Dass ich doch besser IsDebuggerPresent() aus der WinAPI nehme?

DeddyH 10. Feb 2015 09:11

AW: System.DebugHook
 
Sollte es nicht genügen, gegen 0 zu prüfen?

Stevie 10. Feb 2015 09:18

AW: System.DebugHook
 
Schauen wir mal in den Quellcode:
Zitat:

Zitat von System.pas
{ 1 to notify debugger of non-Delphi exceptions
>1 to notify debugger of exception unwinding }


baumina 10. Feb 2015 09:24

AW: System.DebugHook
 
In "Delphi in a Nutshell" findet man das hier

Zitat:

Delphi’s debugger uses DebugHook to determine what to do with exceptions. When an application runs normally, DebugHook is 0. When you debug an application in Delphi’s IDE, the IDE sets DebugHook to 1. When the IDE catches an exception or when you are single-stepping in the debugger, the IDE sets DebugHook to 2.

Der schöne Günther 10. Feb 2015 09:37

AW: System.DebugHook
 
Alles klar, danke.

Das x-te Beispiel wo Doku und Realität auseinandergehen. :cry:


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:40 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz