How to launch debugger on remote process,...

  • Follow


Hi,

in basic, if i understand that right, we do a OpenProcess(...),
then call a DebugBreakProcess(...) which succeeds on the
call, but the remote process does not break/fail or whatever.
Simply nothing happens,....why?

So, how do i make a remote process being interrupted and
attached to a system installed debugger from within my
application?

regards

K.

-----------------------
Beste Gr�sse / Best regards / Votre bien devoue
Kerem G�mr�kc�
Latest Project: http://www.pro-it-education.de/software/deviceremover
Latest Open-Source Projects: http://entwicklung.junetz.de
----------------------- 

0
Reply iso 10/24/2010 3:05:48 AM

The proccess where its PID is passed to DebugBreakProcess must already 
being run under debugger. If the process isn't currently under a 
debugger, it will raise a breakpoint exception where it will treat it as 
an error and it may cause it to terminate abruptly depending on its 
exception handler.

I think what you need is DebugActiveProcess so that the process will 
stop and the control is given to your application as a debugger.


Kerem G�mr�kc� wrote:
> Hi,
> 
> in basic, if i understand that right, we do a OpenProcess(...),
> then call a DebugBreakProcess(...) which succeeds on the
> call, but the remote process does not break/fail or whatever.
> Simply nothing happens,....why?
> 
> So, how do i make a remote process being interrupted and
> attached to a system installed debugger from within my
> application?
> 
> regards
> 
> K.
> 
> -----------------------
> Beste Gr�sse / Best regards / Votre bien devoue
> Kerem G�mr�kc�
> Latest Project: http://www.pro-it-education.de/software/deviceremover
> Latest Open-Source Projects: http://entwicklung.junetz.de
> -----------------------
0
Reply JJ 10/26/2010 7:04:56 PM


Hi JJ,

thanks for your answer. What i want is to implement a function like
the menu item "Debug" implements in Process Explorer from Sysinternals.
Selecting a Process and then attaching a debugger to it. I have written
my own debugging routines so far, but i want to pass the application
to a installed debugger not my own application. Any idea?

regards

K.

"JJ"  schrieb im Newsbeitrag news:ia78nv$ig7$1@news.eternal-september.org...

The proccess where its PID is passed to DebugBreakProcess must already
being run under debugger. If the process isn't currently under a
debugger, it will raise a breakpoint exception where it will treat it as
an error and it may cause it to terminate abruptly depending on its
exception handler.

I think what you need is DebugActiveProcess so that the process will
stop and the control is given to your application as a debugger.


Kerem G�mr�kc� wrote:
> Hi,
>
> in basic, if i understand that right, we do a OpenProcess(...),
> then call a DebugBreakProcess(...) which succeeds on the
> call, but the remote process does not break/fail or whatever.
> Simply nothing happens,....why?
>
> So, how do i make a remote process being interrupted and
> attached to a system installed debugger from within my
> application?
>
> regards
>
> K.
>
> -----------------------
> Beste Gr�sse / Best regards / Votre bien devoue
> Kerem G�mr�kc�
> Latest Project: http://www.pro-it-education.de/software/deviceremover
> Latest Open-Source Projects: http://entwicklung.junetz.de
> ----------------------- 

0
Reply iso 10/26/2010 7:43:34 PM

On 26/10/2010 20:43, Kerem G�mr�kc� wrote:
> Hi JJ,
>
> thanks for your answer. What i want is to implement a function like
> the menu item "Debug" implements in Process Explorer from Sysinternals.
> Selecting a Process and then attaching a debugger to it. I have written
> my own debugging routines so far, but i want to pass the application
> to a installed debugger not my own application. Any idea?

See this article for the registry values in question to read from.
You can then just start that with the given process ID.

-- 
Dee Earley (dee.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems

(Replies direct to my email address will be ignored.
Please reply to the group.)
0
Reply Dee 10/27/2010 8:25:06 AM

Hi Dean,

thanks for the answer. I guess you forgot to attach
the article, but i know you are talking about the AEDebug
Key in the HKLM hive. Ill try to do it with that,...

regards

K.

"Dee Earley"  schrieb im Newsbeitrag news:ia8nl1$sn5$1@speranza.aioe.org...

On 26/10/2010 20:43, Kerem G�mr�kc� wrote:
> Hi JJ,
>
> thanks for your answer. What i want is to implement a function like
> the menu item "Debug" implements in Process Explorer from Sysinternals.
> Selecting a Process and then attaching a debugger to it. I have written
> my own debugging routines so far, but i want to pass the application
> to a installed debugger not my own application. Any idea?

See this article for the registry values in question to read from.
You can then just start that with the given process ID.

-- 
Dee Earley (dee.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems

(Replies direct to my email address will be ignored.
Please reply to the group.) 

0
Reply iso 10/27/2010 1:22:56 PM

On 27/10/2010 14:22, Kerem G�mr�kc� wrote:
> Hi Dean,
>
> thanks for the answer. I guess you forgot to attach
> the article, but i know you are talking about the AEDebug
> Key in the HKLM hive. Ill try to do it with that,...

That's right (and can you use my correct name please?)

-- 
Dee Earley (dee.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems

(Replies direct to my email address will be ignored.
Please reply to the group.)
0
Reply Dee 10/28/2010 8:38:58 AM

>That's right (and can you use my correct name please?)

Oh i am sorry, sure Dee,...

K.
0
Reply iso 10/28/2010 9:51:19 AM

6 Replies
398 Views

(page loaded in 0.294 seconds)

Similiar Articles:













7/25/2012 7:26:45 PM


Reply: