In case anybody else wants to do this, the procedure is to install as Jasem said

sudo apt install -y ekos-debugger

But then run by typing

ekosdebugger

(without the dash). This starts a GUI from which you can launch KStars and INDI, but which will trap crashes and collect crash data.

Read More...