Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-debug-dev] Launching the debugger/perspective on a PID

I am trying to, within code, switch to the debug perspective and debug a process which is already executing - I have its PID. I see in the CDT code places where this is possible though there are all sorts of configuration and related classes floating around that I feel leery around jumping in and calling these methods - many are protected anyway.

Can anyone explain to me how to do this? In pseudo-code I'm thinking something like:

int pid = pid_of_currently_executing_process;
launchDebuggerAndPerspectiveOnPID(pid);

Surely it's not this simple, but I assume CDT was built in such a way as the above is remotely possible.

I'd really appreciate any help on this that can be provided.

Thanks so much.

--
-- Nathan



Back to the top