change debug dir order to prefer appDir and do not duplicate Debuggers
Summary:
previously we'd duplicate 'codeNames' of debuggers.
so, if I had CodeName=gdb in both bin/debugger/internal/gdbrc and
also XDG_*/debugger/internal/gdbrc it'd effectively include both in the
list. and it was more or less undefined which one would get used.
with the revised lookup code we'll now always have unique CodeNames (e.g.
gdb will only appear once in the candidate list) and by preferring bin/
we can now put "fake" debuggers into $builddir/bin/ to force them getting
used over potentially system-wide debuggers. the latter is particularly
handy when testing since you can now fixate the gdb debugger to ultimately
be nothing more than cat /sometracefile but rely on all the same code
paths as an actual gdb run would
Test Plan: builds and I can dump fake debuggers into my build dir
Reviewers: Plasma, apol
Reviewed By: apol
Subscribers: apol, plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D22401