Bug 458919

Summary: Debug As... (GDB) not available without okteta package
Product: [Applications] kdevelop Reporter: Daniel Nechtan <danielnechtan>
Component: CPP DebuggerAssignee: kdevelop-bugs-null
Status: RESOLVED DOWNSTREAM    
Severity: minor CC: danielnechtan, niko.sams, wsierz
Priority: NOR    
Version First Reported In: 5.8.220403   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Daniel Nechtan 2022-09-09 10:21:00 UTC
SUMMARY

The Archlinux package for kdevelop doesn't pull in okteta by default (it is an optional package which may not be apparent to end users) resulting in the "Debug As..." option being absent when using the GDB Support plugin.  There's no indication that anything is missing or incorrectly configured.  


STEPS TO REPRODUCE

1. Install kdevelop through pacman on Archlinux / Manjaro
2. Launch kdevelop (disable LLDB Support plugin if required)
3. Import a project
4. Right-click a CMake Target to find  "Debug As..." in the context menu

OBSERVED RESULT

Without okteta, there is no "Debug As..." menu item when right-clicking a CMake Target within kdevelop when using the GDB Support plugin.  The option does appear with LLDB Support enabled, which is the default; however, if LLDB is not installed an error is thrown about being unable to run lldb-mi (a separate issue; also interesting that the Debug menu appears despite missing okteta with the LLDB Support plugin enabled but not with GDB!).

EXPECTED RESULT

The "Debug As..." context menu item should be visible regardless of the presence of okteta with some kind of indication that the package is missing and required if Archlinux packagers won't make okteta a required dependency, 

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Archlinux / Manjaro | Wayland | linux 5.15.60
KDE Plasma Version: 5.24.6
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION

Resolve locally by running `pacman -S okteta` to install okteta.
Comment 1 Will Sierzputowski 2023-04-02 15:01:41 UTC
Fixed by adding entry to Arch wiki.

(In reply to Daniel Nechtan from comment #0)
> SUMMARY
> 
> The Archlinux package for kdevelop doesn't pull in okteta by default (it is
> an optional package which may not be apparent to end users) resulting in the
> "Debug As..." option being absent when using the GDB Support plugin. 
> There's no indication that anything is missing or incorrectly configured.  
> 
> 
> STEPS TO REPRODUCE
> 
> 1. Install kdevelop through pacman on Archlinux / Manjaro
> 2. Launch kdevelop (disable LLDB Support plugin if required)
> 3. Import a project
> 4. Right-click a CMake Target to find  "Debug As..." in the context menu
> 
> OBSERVED RESULT
> 
> Without okteta, there is no "Debug As..." menu item when right-clicking a
> CMake Target within kdevelop when using the GDB Support plugin.  The option
> does appear with LLDB Support enabled, which is the default; however, if
> LLDB is not installed an error is thrown about being unable to run lldb-mi
> (a separate issue; also interesting that the Debug menu appears despite
> missing okteta with the LLDB Support plugin enabled but not with GDB!).
> 
> EXPECTED RESULT
> 
> The "Debug As..." context menu item should be visible regardless of the
> presence of okteta with some kind of indication that the package is missing
> and required if Archlinux packagers won't make okteta a required dependency, 
> 
> SOFTWARE/OS VERSIONS
> 
> Linux/KDE Plasma: Archlinux / Manjaro | Wayland | linux 5.15.60
> KDE Plasma Version: 5.24.6
> KDE Frameworks Version: 5.96.0
> Qt Version: 5.15.5
> 
> ADDITIONAL INFORMATION
> 
> Resolve locally by running `pacman -S okteta` to install okteta.