Recent

Author Topic: Debugger error  (Read 356 times)

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 595
    • Double Dummy Solver - free download
Debugger error
« on: April 24, 2024, 05:55:42 pm »
I've created a terrible bug in my program. It seems to be intermittent. I can not trace to the offending line. Once the program hangs - it can't be closed with the upper right [X] in Windows, but I can stop Laz (Ctrl-F2).
See attached error message that I've never seen before. I also get a "Windows Security" warning in the lower right of my screen shortly after getting the Debugger error message.

I've tried Dwarf 3 and also Dwaft-2 with sets. Anyone have an idea what's going on here? I'm not looking for help debugging my program but a clue as to what kind of error could trigger that error message.
Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

440bx

  • Hero Member
  • *****
  • Posts: 4194
Re: Debugger error
« Reply #1 on: April 24, 2024, 06:03:13 pm »
What happens when you start the process from the command line ? (IOW, no debugger involved.)
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9987
  • Debugger - SynEdit - and more
    • wiki
Re: Debugger error
« Reply #2 on: April 24, 2024, 06:06:12 pm »
If you got a Windows security warning, check if the exe still exists.

I have seen that a few times, that Windows defender deletes the freshly compiled exe, before it can be debugged.  Especially (but not only) when the exe has been recompiled several times in a short time => Windows sees the accumulated changes of the exe (caused by recompiling it) as "evasive action".

And yes, I am 100% sure that in the cases I observed it was a clean exe and no virus was involved anywhere on the system. I restored the exe, and send to virustotal and https://metadefender.opswat.com/ => both reported 100% clean.

Try to exclude the folder from Windowsdefender https://support.microsoft.com/en-us/windows/add-an-exclusion-to-windows-security-811816c0-4dfd-af4a-47e4-c301afe13b26

 

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 595
    • Double Dummy Solver - free download
Re: Debugger error
« Reply #3 on: April 24, 2024, 07:03:07 pm »
Turning off Windows Virus and threat security eliminated the 'Debugger error' and also, of course, the Windows Security message. At least I can now get further into the process of tracking down this bug.

Both the exe and the dbg files exist in the expected folder with the expected time and size.

Thank you Martin for telling me about the ability to exclude just one folder from virus scanning. I feel a lot better about just one folder than the entire PC being "unprotected". When I excluded just the folder with the "offending" files - no error message - although my bug is of course still there.
Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

 

TinyPortal © 2005-2018