Debugger Detection

This is a discussion on Debugger Detection within the Windows Programming forums, part of the Platform Specific Boards category; Hi there, Is there a generic way for a program to detect whether it is running in a debugger? By ...

  1. #1
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812

    Debugger Detection

    Hi there,

    Is there a generic way for a program to detect whether it is running in a debugger?

    By generic I mean any debugger. I'm not looking for assembler to detect SoftIce.

    Thanks
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    I doubt it. Very seriously.

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    > Is there a generic way for a program to detect whether it is running in a debugger?
    No.

    But since this is the windows board, maybe this applies
    http://msdn.microsoft.com/library/de...gerpresent.asp
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    >But since this is the windows board, maybe this applies

    Perfect thanks!

    Maybe I should have said, I was looking for a generic [Windows] solution.
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. executing from debugger
    By hedwin in forum C++ Programming
    Replies: 8
    Last Post: 10-11-2007, 04:05 PM
  2. Replies: 3
    Last Post: 07-24-2007, 04:25 PM
  3. bounding box collision detection
    By DavidP in forum Game Programming
    Replies: 7
    Last Post: 07-07-2002, 11:43 PM
  4. collision detection
    By DavidP in forum Game Programming
    Replies: 2
    Last Post: 05-11-2002, 01:31 PM
  5. Replies: 4
    Last Post: 05-03-2002, 09:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21