Good evening! I am unable to debug my C language code with Kate version 24.12.3. All the necessary plugins are activated. In older versions of Kate I was able to debug my code. I am compiling my code within Kate 24.12.3 without any problems, but after entering the commands "start debugging" and "step in" the system displays an error message saying "During startup program exited with code 1." The full error message is below: "--> (thread-group-added) {"id":"i1"} GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". --> (thread-group-started) {"id":"i1","pid":"4517"} --> (thread-created) {"group-id":"i1","id":"1"} --> (thread-exited) {"group-id":"i1","id":"1"} --> (thread-group-exited) {"id":"i1"} -exec-run --start During startup program exited with code 1. -data-evaluate-expression "setvbuf(stdout, 0, 1, 1024)" No symbol "setvbuf" in current context." What should I do? Additional information about my system: System: Kernel: 6.8.0-51-generic arch: x86_64 bits: 64 compiler: gcc v: 13.3.0 clocksource: tsc Desktop: Cinnamon v: 6.4.6 tk: GTK v: 3.24.41 wm: Muffin v: 6.4.1 vt: 7 dm: LightDM v: 1.30.0 Distro: Linux Mint 22.1 Xia base: Ubuntu 24.04 noble Machine: Type: Desktop Mobo: AMI model: Intel serial: <superuser required> part-nu: G1C1 uuid: <superuser required> UEFI: American Megatrends v: 1.2_217 date: 10/13/2022 CPU: Info: dual core model: Intel Celeron N3350 bits: 64 type: MCP smt: <unsupported> arch: Goldmont rev: 9 cache: L1: 112 KiB L2: 2 MiB Speed (MHz): avg: 2288 min/max: 800/2400 cores: 1: 2288 2: 2288 bogomips: 4377 Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Hi - could you please provide the information requested in the bug reporting template, so that folks can clearly see the steps required to reproduce the issue, what was observed, and what was expected? Please see https://community.kde.org/Get_Involved/Issue_Reporting#Steps_to_Reproduce for an example of that. Thanks!
You are using the GDB backend it seems. We have a different backend, DAP. Can you try that? The dap backend is where it says: "gdb | launch (debug)". You can use it by supplying a launch config manually in the UI or by using a launch.json file places in the ".vscode/launch.json" directory at the root of your project. An example entry: { "name": "kate", "request": "launch", "program": "/home/user/kde/build/utilities/kate/bin/kate", "args": [ "-b", "-n" ], "type": "gdb", "stopAtBeginningOfMainSubprogram": true }, Just replace "program" and "args" and you will be good to go. GDB backend is not supported anymore. 24.12.3 was the last version that supported it.
Created attachment 180266 [details] attachment-1397866-0.html Thanks a lot for your help!! I am gonna try it. Best regards, Josué Em seg., 14 de abr. de 2025 às 02:16, Waqar Ahmed <bugzilla_noreply@kde.org> escreveu: > https://bugs.kde.org/show_bug.cgi?id=502505 > > Waqar Ahmed <waqar.17a@gmail.com> changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > CC| |waqar.17a@gmail.com > > --- Comment #2 from Waqar Ahmed <waqar.17a@gmail.com> --- > You are using the GDB backend it seems. We have a different backend, DAP. > Can > you try that? > > The dap backend is where it says: "gdb | launch (debug)". You can use it by > supplying a launch config manually in the UI or by using a launch.json file > places in the ".vscode/launch.json" directory at the root of your project. > An > example entry: > > { > "name": "kate", > "request": "launch", > "program": "/home/user/kde/build/utilities/kate/bin/kate", > "args": [ "-b", "-n" ], > "type": "gdb", > "stopAtBeginningOfMainSubprogram": true > }, > > Just replace "program" and "args" and you will be good to go. > > > GDB backend is not supported anymore. 24.12.3 was the last version that > supported it. > > -- > You are receiving this mail because: > You reported the bug.
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone!