Bug 146174 - KDevelop silently skips breakpoints in "Release" mode
Summary: KDevelop silently skips breakpoints in "Release" mode
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.4.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-30 20:52 UTC by Dima Ryazanov
Modified: 2007-05-31 10:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dima Ryazanov 2007-05-30 20:52:37 UTC
Version:           3.4.1 (using KDE KDE 3.5.7)
Installed from:    Ubuntu Packages
OS:                Linux

My project is managed by "qmake". By default, it is compiled in "Release" mode. If I try to debug it, KDevelop will start GDB, etc. - but will silently skip breakpoints. 

This is extremely confusing. If KDevelop cannot debug the program in "Release" mode, it should say so.
Comment 1 Andreas Pakulat 2007-05-30 21:40:44 UTC
Thats not kdevelops fault, debugging an application that doesn't have debug symbols compiled and is compiled without any optimizations is impossible even in plain gdb.

The debugger doesn't know about the build type of the project, there's no way to know that. 

And AFAIK its quite common knowledge that you need to build an application in debug mode to actually debug it.
Comment 2 Dima Ryazanov 2007-05-31 04:12:23 UTC
But... it's a little hard to find the "Debug mode" option - I need to go to the "QMake Manager" tab, then "Subproject settings", and "Configuration". It's not even in "normal" project settings. But it takes only one click to start the debugger.

AFAIK, in other IDEs - Visual Studio, Eclipse, etc. - debug mode is the default.
Comment 3 Andreas Pakulat 2007-05-31 10:14:22 UTC
The Project Options dialog contains settings that KDevelop stores, however wether you're doing a debug or release build in QMake projects depends solely on the configuration of the Buildsystem. This is not different from Eclipse or Visual Studio, except that those invented their own buildsystem, which KDevelop doesn't do.

Wether a new application is built in debug or release mode depends partly on your Qt, if that was built using the -debug configure switch applications will by default also use the debug mode. 

Last but not least: Yes our templates probably could have a debug-mode-enabled by default, please feel free to provide a patch for that (the C++ templates are in languages/cpp/app_templates).