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 8163123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:57:00+00:00 2026-06-06T18:57:00+00:00

I have to debug a c++ project, but as one dependency doesn’t compile in

  • 0

I have to debug a c++ project, but as one dependency doesn’t compile in debug mode and I haven’t been able to fix that issue so far, I’d like to try to debug the project in release mode.

Currently the application crashes due to a null pointer, but I haven’t the code that’s causing the error. As break points apparently are ignored in release-mode, I’d like to know what’s the best way find the error.

  • 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-06T18:57:02+00:00Added an answer on June 6, 2026 at 6:57 pm

    In VS, right click your project, chose "Properties".

    1. Click the C/C++ node. Set Debug Information Format to C7 compatible (/Z7) or Program Database (/Zi).

    2. Expand Linker and click the General node. Set Enable Incremental Linking to No (/INCREMENTAL:NO).

    3. Select the Debugging node. Set Generate Debug Info to Yes (/DEBUG).

    4. Select the Optimization node. Set References to Yes (/OPT:REF).

    if /OPT:REF is specified, /OPT:ICF is on by default.

    That’s ripped directly from Microsoft’s documentation:

    • How to: Debug a Release Build
    • OPT Optimizations

    I do this all of the time and pretty much never debug in debug mode anymore. As you know, many errors that occur in a release build may not occur in a debug build (almost certainly the errors that arise from invoking UB).

    Also, I work on a project which uses a ton of image processing and performs a lot of compression/decompression of large images. Using a slow debug build is simply impractical.

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

Sidebar

Related Questions

I have a Website project that I'm trying to debug using Fiddler. Fiddler doesn't
My solution is primarily C#, but I have one C++ project that creates a
I have to debug some error that is db related and have been continuously
So I know now that the debug assemblies have been intentionally left out of
I have a Django project which has two apps (one created as debug test).
So when I'm trying to debug a project in Visual Studio, I'll often have
I have a VS 2005 C++ project with both Debug and Release builds. I've
Update 2 : So I never have used the debug function in firebug, but
in one of my questions ,somebody said that I have to make sure that
I have a project that includes files from a different project. I am getting

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.