Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8458819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:10:55+00:00 2026-06-10T13:10:55+00:00

I basically want to know how to turn off optimization so that gdb works

  • 0

I basically want to know how to turn off optimization so that gdb works correctly.

When I set up an Automake project from scratch, it seems like the defaults for CPPFLAGS are “-g -O2”, but I just want “-g”. There is an unrelated question where the answer shows Project.ede files that have the configuration-variables field set for the target here:

Setting up an emacs EDE-project with libraries

Based on this, I edited my target to produce the following Project.ede:

;; Object test3
;; EDE Project Files are auto generated: Do Not Edit
(ede-proj-project "test3"
  :file "Project.ede"
  :name "test3"
  :targets (list 
   (ede-proj-target-makefile-program "test3"
    :name "test3"
    :path ""
    :source '("main.cpp")
    :configuration-variables '(("debug" ("CPPFLAGS" . "-g")) ("release" ("CPPFLAGS" . "-O3")))
    :ldlibs '("boost_program_options" "boost_system")
    )
   )
  :makefile-type 'Makefile.am
  )

However, executing ede-compile-project and ede-compile-target after these edits still produces the same “-g -O2” values. How do I activate the “debug” configuration that I created? Also, how can I set this to be the default set of configurations for new projects so I don’t need to change every new project that I create manually?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:10:56+00:00Added an answer on June 10, 2026 at 1:10 pm

    You can change current configuration in project settings.

    M-x customize-project, then go to the Settings tab and change the Current Configuration value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I basically want to know what the system's input language is currently on (for
Basically, I want to know what is best to avoid future problems and confusions
Basically, I just want to know if its possible to use Nhibernate to migrate
I am new to networking. I just basically want to know whether we can
Basically I want to know how many people have tweeted a link to a
Basically, I want to have an app with only one view that has an
I have an iframe setup within a page and basically want to know whether
Basically I want to turn a string in to an identifier for an object
Basically I want to recreate the filebrowser (drilldown Tableview) from the DropBox iPhone app
I want to send device to sleep or turn the screen off. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.