Idea of attaching to a current running process

Dec 13, 2016 at 7:55 AM
Hi ,

After using OpenCppCoverage for so long time, I really loved this tool so much!

Now I am thinking of is it possible to add support for "Attaching a running process" for code coverage? Currently a new process will be created and allow for code coverage, but we know that Visual studio can allow you to attach a running process to debug. As the tool is implemented very much like a debugger, so is it possible to use Debug API: DebugActiveProcess(dwProcessID) to enable the attaching and detaching functionality to get code coverage for a running process?


Thanks,
Frank
Coordinator
Dec 29, 2016 at 12:49 PM
Hi,

First of all, thank you for using OpenCppCoverage for a long time and bringing a lot of ideas.

Attaching to a current running process is something I already thought about but I do not find a use case.
Computing the code coverage for a service could be a use case but I think the alternative I proposed here is a more general approach.

Do you have a use case in mind?

OpenCppCoverage