Process being debuged

This is a discussion on Process being debuged within the Windows Programming forums, part of the Platform Specific Boards category; How can a process determine whether it's being debuged or not??...

  1. #1
    #include<xErath.h> xErath's Avatar
    Join Date
    Jun 2004
    Posts
    722

    Process being debuged

    How can a process determine whether it's being debuged or not??

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786

  3. #3
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    Or just use the win32 API function IsDebuggerPresent()

  4. #4
    #include<xErath.h> xErath's Avatar
    Join Date
    Jun 2004
    Posts
    722
    Uhh, neat stuff... Any alternative ways??

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    Quote Originally Posted by xErath
    Uhh, neat stuff... Any alternative ways??

    Yeah, you put up a dialog asking the user if he's using a debugger (possibly even hacking your app). If he clicks the "yes" button, then take this as confirmation that a debugger is being used.

  6. #6
    #include<xErath.h> xErath's Avatar
    Join Date
    Jun 2004
    Posts
    722
    ....
    I'm wrote that because some apps I've debuged use alternative ways to the win32 API funtion... and looking for a small asm segment like the one in codeproject.com is a bit laborous.

  7. #7
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    You could always try a google search.

    I know that debugging often involves use of a certain interupt and there are ways of checking for that, but I cant remember much on it off the top of my head. That's where google is healpful

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. init adopts zombie process?
    By password636 in forum Linux Programming
    Replies: 4
    Last Post: 07-01-2009, 10:05 AM
  2. create a child process that creates a child process
    By cus in forum Linux Programming
    Replies: 9
    Last Post: 01-13-2009, 01:14 PM
  3. Replies: 3
    Last Post: 10-15-2008, 09:24 AM
  4. Problem with forking a process
    By Unitedroad in forum C Programming
    Replies: 10
    Last Post: 10-04-2007, 01:43 AM
  5. process programming
    By St0rM-MaN in forum Linux Programming
    Replies: 2
    Last Post: 09-15-2007, 07:53 AM

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