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. Breakpoints cannot be set!!!

Breakpoints cannot be set!!!

Scheduled Pinned Locked Moved C / C++ / MFC
debugginghelpquestion
9 Posts 4 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.
  • M Offline
    M Offline
    Mr Freeze
    wrote on last edited by
    #1

    Hi, I cannot debug my program anymore since a few days. I must have made a change somewhere (but where :confused: ) and now everytime I try to set a breakpoint (in any part of my project) the following message appears: One or more breakpoints cannot be set and have been disabled. Execution will stop at the beginning of the program. Can anyone help?? Thanks :)

    C L C M 4 Replies Last reply
    0
    • M Mr Freeze

      Hi, I cannot debug my program anymore since a few days. I must have made a change somewhere (but where :confused: ) and now everytime I try to set a breakpoint (in any part of my project) the following message appears: One or more breakpoints cannot be set and have been disabled. Execution will stop at the beginning of the program. Can anyone help?? Thanks :)

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      try a Rebuild All. you need to convince the debugger that it is looking at the latest build of the source. also, make sure you're building in debug mode.. :) -c ------------------------------ Smaller Animals Software, Inc. http://www.smalleranimals.com

      1 Reply Last reply
      0
      • M Mr Freeze

        Hi, I cannot debug my program anymore since a few days. I must have made a change somewhere (but where :confused: ) and now everytime I try to set a breakpoint (in any part of my project) the following message appears: One or more breakpoints cannot be set and have been disabled. Execution will stop at the beginning of the program. Can anyone help?? Thanks :)

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Hmmm, should I help the arch enemy of BatMan? Anyway have a look at the following two KnowledgeBase articles. Hopefully one of them will help you. Q146447 and Q78853. Michael Martin Pegasystems Pty Ltd Australia martm@pegasystems.com +61 413-004-018 "Don't belong. Never join. Think for yourself. Peace" - Victor Stone

        1 Reply Last reply
        0
        • M Mr Freeze

          Hi, I cannot debug my program anymore since a few days. I must have made a change somewhere (but where :confused: ) and now everytime I try to set a breakpoint (in any part of my project) the following message appears: One or more breakpoints cannot be set and have been disabled. Execution will stop at the beginning of the program. Can anyone help?? Thanks :)

          C Offline
          C Offline
          Chaos Lawful
          wrote on last edited by
          #4

          I think you had switch the compiler into Release mode, so no breakpoints can be set. You can switch back to Debug mode in the menu Build --> Set Active Configuration.:cool: Law is meaningless without chaos. Chaos without Law is equal to destruction. Chaos and Law create our rich and colorful world.

          1 Reply Last reply
          0
          • M Mr Freeze

            Hi, I cannot debug my program anymore since a few days. I must have made a change somewhere (but where :confused: ) and now everytime I try to set a breakpoint (in any part of my project) the following message appears: One or more breakpoints cannot be set and have been disabled. Execution will stop at the beginning of the program. Can anyone help?? Thanks :)

            M Offline
            M Offline
            Mr Freeze
            wrote on last edited by
            #5

            Thanks for the many replys, but the cause is probably elesewhere because it is still not working :( I remember removing a few project options which where not compatible with the "Maximize speed"-optimization. Could that be the cause? I tried to come back to "default"-optimization, but this didn't change anything :mad:

            C 1 Reply Last reply
            0
            • M Mr Freeze

              Thanks for the many replys, but the cause is probably elesewhere because it is still not working :( I remember removing a few project options which where not compatible with the "Maximize speed"-optimization. Could that be the cause? I tried to come back to "default"-optimization, but this didn't change anything :mad:

              C Offline
              C Offline
              Chaos Lawful
              wrote on last edited by
              #6

              Are you sure you are in the Debug mode and not the Release mode?:confused: Law is meaningless without chaos. Chaos without Law is equal to destruction. Chaos and Law create our rich and colorful world.

              M 1 Reply Last reply
              0
              • C Chaos Lawful

                Are you sure you are in the Debug mode and not the Release mode?:confused: Law is meaningless without chaos. Chaos without Law is equal to destruction. Chaos and Law create our rich and colorful world.

                M Offline
                M Offline
                Mr Freeze
                wrote on last edited by
                #7

                Yes, unfortunately I'm in debug mode... :(( Why can't the error message be a little more explicit :confused:

                C 1 Reply Last reply
                0
                • M Mr Freeze

                  Yes, unfortunately I'm in debug mode... :(( Why can't the error message be a little more explicit :confused:

                  C Offline
                  C Offline
                  Chaos Lawful
                  wrote on last edited by
                  #8

                  I think you had changed the settings for the debug mode. You can try this solution: Project-->Settings-->select Win32 Debug in "Settings For" -->select "C/C++" tab-->select "General" in Category -->select "Program Database for edit and continue" in "Debug Info" then it should work normally.:rolleyes: Law is meaningless without chaos. Chaos without Law is equal to destruction. Chaos and Law create our rich and colorful world.

                  M 1 Reply Last reply
                  0
                  • C Chaos Lawful

                    I think you had changed the settings for the debug mode. You can try this solution: Project-->Settings-->select Win32 Debug in "Settings For" -->select "C/C++" tab-->select "General" in Category -->select "Program Database for edit and continue" in "Debug Info" then it should work normally.:rolleyes: Law is meaningless without chaos. Chaos without Law is equal to destruction. Chaos and Law create our rich and colorful world.

                    M Offline
                    M Offline
                    Mr Freeze
                    wrote on last edited by
                    #9

                    ...and everything is working for the best now! Thanks Chaos Lawful, you saved me for the second time :)

                    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