Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Release and debug mode

Release and debug mode

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingtutorialquestionannouncement
10 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anu_Bala
    wrote on last edited by
    #1

    Hi, Whats the difference between release and debug mode. Debug mode is enough for debugging and to build the project.THen why release mode is there? I never use tht mode?Any tutorial about that?

    _ L G H C 8 Replies Last reply
    0
    • A Anu_Bala

      Hi, Whats the difference between release and debug mode. Debug mode is enough for debugging and to build the project.THen why release mode is there? I never use tht mode?Any tutorial about that?

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      You can't debug in the release mode. Debug mode: This is helpful when you want to know where is a fault in your code that is causing a crash or malfunction. The assert macros work in the debug mode not in the release mode. Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

      1 Reply Last reply
      0
      • A Anu_Bala

        Hi, Whats the difference between release and debug mode. Debug mode is enough for debugging and to build the project.THen why release mode is there? I never use tht mode?Any tutorial about that?

        L Offline
        L Offline
        Laxman Auti
        wrote on last edited by
        #3

        Release mode removes the dependencies and shrinks the size of the application. Debug mode is for tracing the application. so prefer the release builds only while deploying the application. Knock out 't' from can't, You can if you think you can :cool:

        1 Reply Last reply
        0
        • A Anu_Bala

          Hi, Whats the difference between release and debug mode. Debug mode is enough for debugging and to build the project.THen why release mode is there? I never use tht mode?Any tutorial about that?

          G Offline
          G Offline
          Ganesh_T
          wrote on last edited by
          #4

          You can get the brieh Description Here[^] Cheers "Peace of mind through Technology"

          1 Reply Last reply
          0
          • A Anu_Bala

            Hi, Whats the difference between release and debug mode. Debug mode is enough for debugging and to build the project.THen why release mode is there? I never use tht mode?Any tutorial about that?

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            See Learn about the issues and differences between Debug and Release builds[^]_**


            **_

            whitesky


            1 Reply Last reply
            0
            • A Anu_Bala

              Hi, Whats the difference between release and debug mode. Debug mode is enough for debugging and to build the project.THen why release mode is there? I never use tht mode?Any tutorial about that?

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #6

              Another point is that it's illegal to sell applications that are in debug mode because they uses debug dll's also. These dll's are from microsoft and you are not allowed to distribute the debug version.


              Cédric Moonen Software developer
              Charting control

              1 Reply Last reply
              0
              • A Anu_Bala

                Hi, Whats the difference between release and debug mode. Debug mode is enough for debugging and to build the project.THen why release mode is there? I never use tht mode?Any tutorial about that?

                E Offline
                E Offline
                Eytukan
                wrote on last edited by
                #7

                I find this question may be for the 100th time :-D. Debug as it's name suggests , comes with all macros that helps you to debug your application, (ie ASSERT, TRACE ). So with all these, your .exe's size would be naturally bigger. And when you check for dependencies, you'll see it's refering to the dlls that ends with "d".. like MFC42D.dll, MSVCRTD.dll ect. But when you make your application in Release mode, it is fully optimized. Compare the size of both the .exes you'll know.


                --[:jig:]-- [My Current Status]

                1 Reply Last reply
                0
                • A Anu_Bala

                  Hi, Whats the difference between release and debug mode. Debug mode is enough for debugging and to build the project.THen why release mode is there? I never use tht mode?Any tutorial about that?

                  N Offline
                  N Offline
                  namaskaaram
                  wrote on last edited by
                  #8

                  u can debug in release mode!... just a matter of changing the settings....just check teh Generate debug info flag!....

                  T 1 Reply Last reply
                  0
                  • A Anu_Bala

                    Hi, Whats the difference between release and debug mode. Debug mode is enough for debugging and to build the project.THen why release mode is there? I never use tht mode?Any tutorial about that?

                    T Offline
                    T Offline
                    toxcct
                    wrote on last edited by
                    #9

                    one more difference that don't seem to be told here yet : compile both debug and release mode and compare the sizes of the new .exe... seeing a difference ? (the debug version should be much bigger because it contains debug infos, the comments of your code have not been erased neither)...


                    TOXCCT >>> GEII power

                    [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

                    1 Reply Last reply
                    0
                    • N namaskaaram

                      u can debug in release mode!... just a matter of changing the settings....just check teh Generate debug info flag!....

                      T Offline
                      T Offline
                      toxcct
                      wrote on last edited by
                      #10

                      this is crap. it's just as if you delete this in a contructor, and initialize your object state in the destructor. it's not what release mode is made for, so don't use it for debug !!!


                      TOXCCT >>> GEII power

                      [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups