[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 144496] New: C++ CMake hello world project cannot be debugged
From: yzhh <yezonghui () gmail ! com>
Date: 2007-04-21 15:40:24
Message-ID: 20070421174023.144496.yezonghui () gmail ! com
[Download RAW message or body]
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=144496
Summary: C++ CMake hello world project cannot be debugged
Product: kdevelop
Version: unspecified
Platform: Debian testing
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Appwizard Templates
AssignedTo: kdevelop-bugs kdevelop org
ReportedBy: yezonghui gmail com
Version: (using KDE KDE 3.5.5)
Installed from: Debian testing/unstable Packages
OS: Linux
Create a C++ CMake "hello world" project using the "New Project" Wizard. Then try to \
debug it. This happens:
1. When I hit F9 (or select menu item "Debug->Start"), the program simply runs to \
end, no matter how many and where I put break points (they are always grey, \
indicating not successfully added to the debugged program).
2. When trying to debug the compiled hello world program directly using gdb (ie. \
outside of kdevelop), setting a break point at main("break main"), run it("run"), the \
break point is hit but try "next" or "step" after this, gdb shows "Single stepping \
until exit from function main,which has no line number information." and stops in \
__libc_start_main ().
Finally I found out that I must manually modify CMakeLists.txt in the project folder, \
changing ADD_DEFINITIONS(-Wall -O2)
into
ADD_DEFINITIONS(-Wall -g -O0)
to enable normal debug.
I think there should be some "Enable debug" option in the "project options" Dialog, \
or a "debug " target made avaiable in the "build targets" menu, or anything that do \
not require manual modification of CMakeLists.txt just to bring up debugging.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic