Bug 216692 - Notify if trying to debug without debug symbols available
Summary: Notify if trying to debug without debug symbols available
Status: RESOLVED DUPLICATE of bug 327760
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (show other bugs)
Version: unspecified
Platform: unspecified Linux
: VLO wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-29 18:08 UTC by steverweber
Modified: 2013-12-03 18:23 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description steverweber 2009-11-29 18:08:18 UTC
Version:           3.9.96 (using KDevPlatform 0.9.96) (using 4.3.3 (KDE 4.3.3), Chakra KDE)
Compiler:          gcc
OS:                Linux (i686) release 2.6.31-ARCH

A simple messagebox if breakpoints are set and user tries to debug without "CMAKE_BUILD_TYPE" "Debug" would have bin helpfull to get my breakpoints to work.

perhaps even disable the debug option if breakpoints wont work.

...
Please set Project -> Open Configuration -> CMAKE "CMAKE_BUILD_TYPE" to include "Debug" so breakpoints will work..
Comment 1 Andreas Pakulat 2009-11-29 19:42:45 UTC
I don't think this makes much sense. Apart from the fact that we should use Debug by default, which exact flags are passed to gcc and wether or not thats enough for gdb to debug the executable is not under our control. If the cmake-writer thinks that -g is not useful for Debug mode, then the message-box won't help as it wouldn't show up.

Not closing for now, I'd like some more opinions on this one.
Comment 2 Valentyn Pavliuchenko 2010-07-03 20:54:52 UTC
Well, the message box can have a checkbox "Don't ask for this build type" which disables the message for current build type on the current project (and is being saved as a project option in .kdev/*.kdev4). Also it will be good to be able to disable it globally.

With such enhancements there will be no problems with those who doesn't want it, and it will be quite useful for other users.

Personally I'd like to see this feature in KDevelop4.
Comment 3 Aleix Pol 2010-08-11 01:47:45 UTC
I don't think that should come from CMake support but from gdb support.

Is there any way to tell whether a binary was compiled with debug information? How does KCrash do?

Also it shouldn't be a MessageBox, obviously.
Comment 4 Vlas Puhov 2013-12-03 18:23:23 UTC

*** This bug has been marked as a duplicate of bug 327760 ***