You are not logged in.

#1 2023-01-20 11:51:31

evren320
Member
Registered: 2022-11-22
Posts: 12

KDevelop debug give errors on a fresh ArchLinux install

I create new project and press debug, configured new launcher correctly, but i get this error:

Could not start debugger.
Could not run 'lldb-mi'. Make sure that the path name is specified correctly.

I have installed these packages too but result is same:
cmake gcc clang gdb lldb clazy cppcheck astyle ctags meson ninja

KDevelop 5.10.221201
ArchLinux is installed and updated on 2023-01-20
LXQt desktop with openbox and sddm
Kernel 6.1

Offline

#2 2023-01-20 12:17:41

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,268

Re: KDevelop debug give errors on a fresh ArchLinux install

It seems lldb-mi was part of the llvm/lldb project but has been moved out of it.
https://lists.llvm.org/pipermail/lldb-d … 15357.html

There's no lldb-mi pacakge in repos, but aur has https://aur.archlinux.org/packages/lldb-mi-git .
You'll have to build it yourself, check https://wiki.archlinux.org/title/Arch_User_Repository incase you're not familiar with using aur packages.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2023-01-20 13:05:44

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,294

Re: KDevelop debug give errors on a fresh ArchLinux install

It will not work anyway since kdevelop lldb support requires python2

https://bugs.kde.org/show_bug.cgi?id=413372

Offline

#4 2023-01-22 09:09:49

evren320
Member
Registered: 2022-11-22
Posts: 12

Re: KDevelop debug give errors on a fresh ArchLinux install

it seems, to be able to choose gdb, okteta should be installed, after that, i was able to select gdb instead of lldb, then debugging worked, but we can't choose lldb anymore? i hope it will be fixed soon.
i think kdevelop would need to give more informative errors like, "okteta is not found and in order to use gdb, okteta needs to be installed" etc. because i am new to kdevelop and i don't know about details on how it's supposed to work in default settings.

Offline

#5 2023-01-22 10:49:28

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,268

Re: KDevelop debug give errors on a fresh ArchLinux install

i think kdevelop would need to give more informative errors like, "okteta is not found and in order to use gdb, okteta needs to be installed" etc. because i am new to kdevelop and i don't know about details on how it's supposed to work in default settings.

On archlinux it's a good idea to use pacman -Qi pkgname after you installed something new.
Especially when things don't go as you expect.

Check the output of

$ pacman -Qi kdevelop

and pay attention to the list of optional dependencies and what they're needed for.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB