process list for debugger attaching

René J.V. Bertin rjvbertin at
Wed Sep 14 15:41:34 UTC 2016


Now that KDevelop has a interfaces to both gdb and lldb it can be used for debugging on OS X too. YMMV, but I find it often more efficient to attach a debugger to complex GUI applications once they're all started up and ready to go, and this is not possible on when libksysguard doesn't support the platform.

I've spent some time implementing minimal support for OS X in that library, so that at least KDevelop can get a list of processes to attach to:

It's not trivial at all though, and since OS X already has a several very nice utilities that provide similar functionality as ksysguard I see little reason spend more time than necessary on that library.

I had a look at how Qt Creator handles the problem, and its solution is dead simple: just use ps, and let the user refresh the list if required. I used the same approach as a fallback in my lksysguard patch.

But what if we do as Qt Creator, at least on platforms where libksysguard is known not to work (reliably)? 
I presume that would require substantial changes in the code, because the whole list display will have to be implemented from scratch?


More information about the KDevelop-devel mailing list