12-06-2009 05:55 PM
This may have been answered before but I can't find it after searching, I've got some deja vu happening.
I have a debug version of a process, "Child Process" that I want to schedule as a child process from a first process (Parent Process) that I am debugging.
If I debug the Parent Process to the CreateProcess call, the child gets scheduled and runs, but never stops at any breakpoints I've set.
Is there some way that I can schedule this child process and have it stop at a breakpoint?
Thanks,
Menchar
12-07-2009 11:38 AM
I'm not aware of any mechanism that would allow you to debug your child process automatically. One instance of the debugger cannot debug more than one process simultaneously. The only way I can think of to do something like this would be to modify the code that you are using to launch your child process so that it launches instead another instance of the CVI ADE, via ActiveX automation, and then uses functions like OpenProject/BuildProject/RunProject to start a debug instance of the real child process in the other instance of CVI. You would either have had to have created the breakpoint ahead of time (which is saved in the .cws file), or create it programmatically using the AddBreakpoint function.
Luis
12-07-2009 11:55 AM
Thanks Luis.
I wound up debugging the child process directly with CVI without the programmatic schedule from a parent process.
Thanks again.