Is it possible to simultaneously debug a parent and child process ? lazarus / 12-Debugger ---------------------------------------------------------------------- 440bx · 2019-03-02 10:57 Hello, Note: this is for Windows 7, 64bit. Two programs, both written in FPC, both same bitness, both with Debugging symbols. From the Lazarus IDE, ProgramA is run under the debugger (GDB) and uses a process creation API to spawn ProcessB (CreateProccess, ShellExecute, etc). I'd like to have the debugger break at the entry point of ProcessB.  Is this possible ?, if the answer is yes, I'd love to know how that's accomplished. Thank you for your help. ---------------------------------------------------------------------- Thaddy · 2019-03-02 12:11 Well, some work is going on, but as this link says: mostly dead. https://sourceware.org/gdb/wiki/MultiTarget ---------------------------------------------------------------------- 440bx · 2019-03-02 13:18 Quote from: Thaddy on March 02, 2019, 01:11:48 pmWell, some work is going on, but as this link says: mostly dead. https://sourceware.org/gdb/wiki/MultiTarget Thank you Thaddy.  I guess, it may be time to visit writeln country. ---------------------------------------------------------------------- Thaddy · 2019-03-02 14:05 or add Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i asm int 3 end; on top of the second? ---------------------------------------------------------------------- 440bx · 2019-03-02 14:12 Quote from: Thaddy on March 02, 2019, 03:05:42 pmor add Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i asm int 3 end; on top of the second? I tried, got no joy out of it.   Got an exception ($03) as a consolation prize... chuckle. ---------------------------------------------------------------------- Martin_fr · 2019-03-02 14:23 Afaik Gdb can only debug one process at a time. IIRC, gdb could interrupt when the new process get started, and maybe even let you choose one of the two (not sure, from very distant memory). In any case the IDE does not support this. If you do not need to intercept immediately, you can attach a 2nd IDE to the forked process. But obviously you can only do that, once it is running. So you do not get it at its entry point. ---------------------------------------------------------------------- 440bx · 2019-03-02 14:43 Quote from: Martin_fr on March 02, 2019, 03:23:37 pmIf you do not need to intercept immediately, you can attach a 2nd IDE to the forked process. But obviously you can only do that, once it is running. So you do not get it at its entry point. That's where the problem is.  I need to start debugging at the entry point.  Thank you, I appreciate the suggestion and additional information you provided.