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

            Bug ID: 407065
           Summary: Debugging silently does not work without
                    CMAKE_BUILD_TYPE=DEBUG
           Product: kdevelop
           Version: 5.3.2
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: CPP Debugger
          Assignee: kdevelop-bugs-n...@kde.org
          Reporter: aspotas...@gmail.com
                CC: niko.s...@gmail.com
  Target Milestone: ---

SUMMARY
Debugging silently does not work without CMAKE_BUILD_TYPE=DEBUG.

I had to manually set CMAKE_BUILD_TYPE=DEBUG in build/CMakeCache.txt to make
debugging work. Before this change, when clicking "Start Debugging" in KDevelop
it would start my application, but the breakpoints didn't work and I didn't
receive any error messages from KDevelop which was very confusing.

Please either
 1. Automatically set CMAKE_BUILD_TYPE=DEBUG when starting debugging, or
 2. When clicking "Debug", inform the user that it won't work properly and tell
them how to fix it manually.

STEPS TO REPRODUCE
1. Open a source tree in KDevelop as a new project. Use the suggested build
path "<project-dir>/build/"
2. Add a run target for an application in the project.
3. Set some breakpoints that will definitely be triggered on application start.
4. Click "Debug".

OBSERVED RESULT
The application runs and is never stopped at the breakpoints. Notice the empty
"CMAKE_BUILD_TYPE:STRING=" in build/CMakeCache.txt.

EXPECTED RESULT
Breakpoints should work out-of-the-box.

SOFTWARE/OS VERSIONS
Операционная система: Fedora 29
Версия KDE Plasma: 5.14.5
Версия Qt: 5.11.3
Версия KDE Frameworks: 5.55.0
Версия ядра: 5.0.6-200.fc29.x86_64
Архитектура: 64-битная

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to