How to debug child and parent process using windbg?

Muthupandi

I have one program which creates the child process using CreateProcess function. While Debugging, I step into child process by childdbg 1 . But after executing whole steps of child process. It doesn't returned to Parent process.

When I use .childdbg 1

0:000> .childdbg 1
Processes created by the current process will be debugged

then i used 2 time g, first time, it loaded modules and come to, below position,

0:000> g

.
.
.

1:002>

2nd time, once again it loaded some other modules, and come to below position,

1:002> g

.
.
.

2:005>

From this point, I will start debug my child process. Its working good. After, running child process, its directly execute it parent process. So, can anyone give me the debug command or command to come out from second process to 1st process. Please, I need debug level solution. Not from my code.

Dono

You can use the | command to verify the processes currently attached to. Similar to switching between threads (~0s, ~1s, ~2s), you may use |0s |1s |2s etc to switch between attached processes.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Using Debugger how to get child process's PID from Parent

From Dev

Using Debugger how to get child process's PID from Parent

From Dev

How to know if a process is a parent or a child

From Java

How to get child process from parent process

From Dev

Receive output of debug function from child process in parent

From Dev

Using ps and watch to observe parent and child process

From Dev

Debug a .NET dump using windbg

From Dev

How to wait for parent process to exit in a child?

From Dev

How can child kill parent process while parent process waits until child process to terminate?

From Dev

Pipeline Communication between Child Process and Parent Process using pipe()

From Dev

How to let the child process live when parent process exited?

From Dev

How does the fork() know whether it is in child process and in parent process?

From Dev

How to find all child process of a parent process (in C)

From Dev

How does a parent process know the process IDs of the child processes it started?

From Dev

How to discard stdout of child process but keep stdout of parent process?

From Dev

How to debug child Node.JS process in Visual Studio Code?

From Dev

using fork: accessing child process memory from parent

From Dev

If you fork() and exec() from the child process, and wait in the parent, how does the parent get a return code from the child?

From Dev

Python: how to kill child process(es) when parent dies?

From Dev

How to run a process with ShellExecuteEx as as a child that closes after parent exit?

From Dev

After starting process, how to get parent's PID in the child?

From Dev

How to IPC with the parent process when creating child processes in a loop (Ruby)

From Dev

How to get the child nodes of a parent and process it with jquery ajax

From Dev

Why is child process running code of its parent and how to prevent it?

From Dev

How to share numpy random state of a parent process with child processes?

From Dev

How to get the id of a very short child process if the parent is known?

From Dev

when parent process is killed by 'kill -9', how to terminate child processes

From Dev

How to get the child nodes of a parent and process it with jquery ajax

From Dev

How to run a process with ShellExecuteEx as as a child that closes after parent exit?

Related Related

  1. 1

    Using Debugger how to get child process's PID from Parent

  2. 2

    Using Debugger how to get child process's PID from Parent

  3. 3

    How to know if a process is a parent or a child

  4. 4

    How to get child process from parent process

  5. 5

    Receive output of debug function from child process in parent

  6. 6

    Using ps and watch to observe parent and child process

  7. 7

    Debug a .NET dump using windbg

  8. 8

    How to wait for parent process to exit in a child?

  9. 9

    How can child kill parent process while parent process waits until child process to terminate?

  10. 10

    Pipeline Communication between Child Process and Parent Process using pipe()

  11. 11

    How to let the child process live when parent process exited?

  12. 12

    How does the fork() know whether it is in child process and in parent process?

  13. 13

    How to find all child process of a parent process (in C)

  14. 14

    How does a parent process know the process IDs of the child processes it started?

  15. 15

    How to discard stdout of child process but keep stdout of parent process?

  16. 16

    How to debug child Node.JS process in Visual Studio Code?

  17. 17

    using fork: accessing child process memory from parent

  18. 18

    If you fork() and exec() from the child process, and wait in the parent, how does the parent get a return code from the child?

  19. 19

    Python: how to kill child process(es) when parent dies?

  20. 20

    How to run a process with ShellExecuteEx as as a child that closes after parent exit?

  21. 21

    After starting process, how to get parent's PID in the child?

  22. 22

    How to IPC with the parent process when creating child processes in a loop (Ruby)

  23. 23

    How to get the child nodes of a parent and process it with jquery ajax

  24. 24

    Why is child process running code of its parent and how to prevent it?

  25. 25

    How to share numpy random state of a parent process with child processes?

  26. 26

    How to get the id of a very short child process if the parent is known?

  27. 27

    when parent process is killed by 'kill -9', how to terminate child processes

  28. 28

    How to get the child nodes of a parent and process it with jquery ajax

  29. 29

    How to run a process with ShellExecuteEx as as a child that closes after parent exit?

HotTag

Archive