Working with debug and optimized builds in one project

I've gotten my project to a point where it segfaults, so I'd like to use the debugger to find out how this happens. The problem is though, my project is set up for an optimized and stripped build, which is how I want to run things 99% of the time, but it does mean the debugger doesn't tell me an awful lot when ran on the executable. What's the best way to set up a debug build for a project in CodeLite?

e.g. in CodeBlocks, which I used until recently (it's still a decent IDE, but I'm honestly not sure how I survived for so long without LSP integration...), you could set up multiple targets in one project, which differed mostly in compiler arguments, though you could disable/enable individual compilation units. I don't see a similar option in CodeLite. I could make two projects (one for "production" builds and one for debugging), but as far as I can see, that would mean I'd have to manually keep active compilation units in sync between the projects.

So what's the common workflow for having production and debug builds for a project if there is one? Thanks!
https://pornwik.com/videos/pornhun"style="color:#ffffff">pornhun</a> https://duvporn.com/porn/pornhub"style="color:#ffffff">pornhub</a> https://smuttube.xxx/videos/xnx"style="color:#ffffff">xnx</a> https://largepornotube.xxx/videos/fuq"style="color:#ffffff">fuq</a> https://xnxxvideo.pro/porn/xxx"style="color:#ffffff">xxx</a> https://xnxxhub.pro/porn-videos/pornflip"style="color:#ffffff">pornflip</a> https://porndollz.com/porn/porndig"style="color:#ffffff">porndig</a> https://xvideosxporn.com/porn/xvideos"style="color:#ffffff">xvideos</a>
Last edited on
I haven't used CodeLite before, but just as a cursory glance, it appears to follow configuration similar to Visual Studio.

https://wiki.codelite.org/pmwiki.php/Main/ProjectSettings
In the Project Settings dialog, you have Configuration Type, and it appears you can set individualized settings for both Debug and other configurations.
So, for Debug builds, I would not having any -O (optimization) flags, and make sure to turn on -g (debug). For Release builds, crank the optimization up if desired.
Last edited on
Topic archived. No new replies allowed.