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. why breakpoint is invalid when I debug a application

why breakpoint is invalid when I debug a application

Scheduled Pinned Locked Moved C / C++ / MFC
c++debugginghelptutorialquestion
10 Posts 6 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.
  • S Offline
    S Offline
    sude
    wrote on last edited by
    #1

    I got a sample visual c++ program from disk.I set some breakpoint in the application ,but when i debug this application,I found that the breakpoint is invalid and the breakpoint is removed in the debugging process.Why and How to fix this problem? Thank you for your answer! sude

    S B 2 Replies Last reply
    0
    • S sude

      I got a sample visual c++ program from disk.I set some breakpoint in the application ,but when i debug this application,I found that the breakpoint is invalid and the breakpoint is removed in the debugging process.Why and How to fix this problem? Thank you for your answer! sude

      S Offline
      S Offline
      shivditya
      wrote on last edited by
      #2

      ONLY TWO THINGS ARE RESPONSIBLE CASE 1 You have placed a break point in loop in which control is not going; CASE 2 You have placed a breakpoint inside dll; || ART OF LIVING ||

      S T 2 Replies Last reply
      0
      • S shivditya

        ONLY TWO THINGS ARE RESPONSIBLE CASE 1 You have placed a break point in loop in which control is not going; CASE 2 You have placed a breakpoint inside dll; || ART OF LIVING ||

        S Offline
        S Offline
        shivditya
        wrote on last edited by
        #3

        you let me know what exactly you have done i will tell you solution || ART OF LIVING ||

        1 Reply Last reply
        0
        • S sude

          I got a sample visual c++ program from disk.I set some breakpoint in the application ,but when i debug this application,I found that the breakpoint is invalid and the breakpoint is removed in the debugging process.Why and How to fix this problem? Thank you for your answer! sude

          B Offline
          B Offline
          Bob Stanneveld
          wrote on last edited by
          #4

          What often happens is that the source code is not the same version as the code in the application. (is the source compiled into a static link library?) Find out where you should put the SLL and relink your app.

          sude wrote:

          Thank you for your answer!

          You're welcome :-D Behind every great black man...             ... is the police. - Conspiracy brother Blog[^]

          1 Reply Last reply
          0
          • S shivditya

            ONLY TWO THINGS ARE RESPONSIBLE CASE 1 You have placed a break point in loop in which control is not going; CASE 2 You have placed a breakpoint inside dll; || ART OF LIVING ||

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            shivditya wrote:

            CASE 2 You have placed a breakpoint inside dll;

            Hello Buddy, can you throw more light on this statement. how come breakpoint become invalid in DLL....

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV

            S 1 Reply Last reply
            0
            • T ThatsAlok

              shivditya wrote:

              CASE 2 You have placed a breakpoint inside dll;

              Hello Buddy, can you throw more light on this statement. how come breakpoint become invalid in DLL....

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta VC Forum Q&A :- I/ IV

              S Offline
              S Offline
              shivditya
              wrote on last edited by
              #6

              If option is not set on debug the dll obviously break point becomes invalid. Try doing it || ART OF LIVING ||

              T 1 Reply Last reply
              0
              • S shivditya

                If option is not set on debug the dll obviously break point becomes invalid. Try doing it || ART OF LIVING ||

                T Offline
                T Offline
                ThatsAlok
                wrote on last edited by
                #7

                shivditya wrote:

                Try doing it

                :confused: Is that option is set by default?!

                "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                cheers, Alok Gupta VC Forum Q&A :- I/ IV

                R 1 Reply Last reply
                0
                • T ThatsAlok

                  shivditya wrote:

                  Try doing it

                  :confused: Is that option is set by default?!

                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                  cheers, Alok Gupta VC Forum Q&A :- I/ IV

                  R Offline
                  R Offline
                  Roger Allen
                  wrote on last edited by
                  #8

                  This is because the debugger cannot find the symbols of the DLL they are trying to set the breakpoint in. They need to goto the Project settins, debug tab and select Additional DLLs in the combo box, you can then specify additional DLLs which will have symbols loaded for them at debug startup. this allows breakpoints to be set in loaded DLLs of a project. Note: This was written with VC6 in mind If you vote me down, my score will only get lower

                  T N 2 Replies Last reply
                  0
                  • R Roger Allen

                    This is because the debugger cannot find the symbols of the DLL they are trying to set the breakpoint in. They need to goto the Project settins, debug tab and select Additional DLLs in the combo box, you can then specify additional DLLs which will have symbols loaded for them at debug startup. this allows breakpoints to be set in loaded DLLs of a project. Note: This was written with VC6 in mind If you vote me down, my score will only get lower

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

                    Roger Allen wrote:

                    They need to goto the Project settins, debug tab and select Additional DLLs in the combo box, you can then specify additional DLLs which will have symbols loaded for them at debug startup. this allows breakpoints to be set in loaded DLLs of a project.

                    That's a Intresting fact :)

                    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                    cheers, Alok Gupta VC Forum Q&A :- I/ IV

                    1 Reply Last reply
                    0
                    • R Roger Allen

                      This is because the debugger cannot find the symbols of the DLL they are trying to set the breakpoint in. They need to goto the Project settins, debug tab and select Additional DLLs in the combo box, you can then specify additional DLLs which will have symbols loaded for them at debug startup. this allows breakpoints to be set in loaded DLLs of a project. Note: This was written with VC6 in mind If you vote me down, my score will only get lower

                      N Offline
                      N Offline
                      Nemanja Trifunovic
                      wrote on last edited by
                      #10

                      Roger Allen wrote:

                      Note: This was written with VC6 in mind

                      Exactly. With VC++ 7+ you don't have to worry about it.


                      My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.

                      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