digitalmars.D.debugger - Are there any debugger functions?
- frame (8/8) Jan 06 2022 If a pointer has an invalid target a debugger in VS shows the
- Rainer Schuetze (3/13) Jan 15 2022 Are you looking for something like IsBadReadPtr? See
- frame (3/5) Jan 24 2022 Worth a try, thanks
If a pointer has an invalid target a debugger in VS shows the error `D0001: Error: Expression couldn't be evaluated` when I try to access it. Is there a debugger function to trigger this access which can be used inside an invariant? I can assert it by checking if the pointer address is far to low, but this doesn't always work.
Jan 06 2022
On 06/01/2022 19:04, frame wrote:If a pointer has an invalid target a debugger in VS shows the error `D0001: Error: Expression couldn't be evaluated` when I try to access it. Is there a debugger function to trigger this access which can be used inside an invariant? I can assert it by checking if the pointer address is far to low, but this doesn't always work.Are you looking for something like IsBadReadPtr? See https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-isbadreadptr
Jan 15 2022
On Saturday, 15 January 2022 at 09:11:53 UTC, Rainer Schuetze wrote:Are you looking for something like IsBadReadPtr? See https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-isbadreadptrWorth a try, thanks
Jan 24 2022