Break point

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Doug Bell

    #1

    Break point

    Hi I am trying to debug a bit of code (while learning .net) and I put in
    some break points.

    I was surprised to find that the code didn't halt.
    On further inspection I noticed that the Break Line inserted a "?" in the
    dot in the margin after the code ran.
    The "Tool-Tip" says
    "The break point will not currently be hit. No symbols have been loaded for
    this document."

    What does this mean?

    Doug


  • Raghavendra  T V

    #2
    Re: Break point

    Hi Doug,

    I assume that you have this problem in an ASP.NET page.
    When debuggin ASP.net you'll often see this error. The breakpoint is set
    but it claims it won't be hit. Typically this is because there is no code
    running at the time. Once you actually are in the cycle of a page request,
    the breakpoints should work normally. This is "normal" behavior.

    Hope this helps you.

    Thanks
    Raghavendra

    "Doug Bell" <dug@bigpond> wrote in message
    news:eh9jxDmjEH A.636@TK2MSFTNG P12.phx.gbl...[color=blue]
    > Hi I am trying to debug a bit of code (while learning .net) and I put in
    > some break points.
    >
    > I was surprised to find that the code didn't halt.
    > On further inspection I noticed that the Break Line inserted a "?" in the
    > dot in the margin after the code ran.
    > The "Tool-Tip" says
    > "The break point will not currently be hit. No symbols have been loaded[/color]
    for[color=blue]
    > this document."
    >
    > What does this mean?
    >
    > Doug
    >
    >[/color]


    Comment

    • Cor Ligthert

      #3
      Re: VB Not ASP

      Doug,

      Just when you set your breakpoint on a Dim or other declaration that has no
      code in it.

      Dim Doug as String 'here you can not set a breakpoint
      Dim Doub as String = "Doug" here you can set a breakpoint.

      I hope this helps?

      Cor


      Comment

      • Doug Bell

        #4
        VB Not ASP

        Hi Raghavendra,
        No it is not ASP. It is a Windows Application written in VB .Net

        I can set the Breakpoint but when I run the code, I see the "?" in the brown
        dot in the left margin and holding the cursor over it shows the tool tip
        with the message. That message is only present after I start the application
        and the breakpoint definitely doesn't work.

        When I close the form I have a message box asking the User if they want to
        save any changes. The message box is openning even if no changes and I am
        trying to find out why but the code doesn't halt.

        Doug

        "Raghavendr a T V" <raagzvb@hotmai l.com> wrote in message
        news:Or7meNmjEH A.2764@TK2MSFTN GP11.phx.gbl...[color=blue]
        > Hi Doug,
        >
        > I assume that you have this problem in an ASP.NET page.
        > When debuggin ASP.net you'll often see this error. The breakpoint is set
        > but it claims it won't be hit. Typically this is because there is no code
        > running at the time. Once you actually are in the cycle of a page[/color]
        request,[color=blue]
        > the breakpoints should work normally. This is "normal" behavior.
        >
        > Hope this helps you.
        >
        > Thanks
        > Raghavendra
        >
        > "Doug Bell" <dug@bigpond> wrote in message
        > news:eh9jxDmjEH A.636@TK2MSFTNG P12.phx.gbl...[color=green]
        > > Hi I am trying to debug a bit of code (while learning .net) and I put in
        > > some break points.
        > >
        > > I was surprised to find that the code didn't halt.
        > > On further inspection I noticed that the Break Line inserted a "?" in[/color][/color]
        the[color=blue][color=green]
        > > dot in the margin after the code ran.
        > > The "Tool-Tip" says
        > > "The break point will not currently be hit. No symbols have been loaded[/color]
        > for[color=green]
        > > this document."
        > >
        > > What does this mean?
        > >
        > > Doug
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Raghavendra  T V

          #5
          Re: VB Not ASP

          Hi Doug,

          Check this thread.



          Hope this solves your problem

          Thanks
          Raghavendra


          "Doug Bell" <dug@bigpond> wrote in message
          news:%23l7DCnmj EHA.1904@TK2MSF TNGP09.phx.gbl. ..[color=blue]
          > Hi Raghavendra,
          > No it is not ASP. It is a Windows Application written in VB .Net
          >
          > I can set the Breakpoint but when I run the code, I see the "?" in the[/color]
          brown[color=blue]
          > dot in the left margin and holding the cursor over it shows the tool tip
          > with the message. That message is only present after I start the[/color]
          application[color=blue]
          > and the breakpoint definitely doesn't work.
          >
          > When I close the form I have a message box asking the User if they want to
          > save any changes. The message box is openning even if no changes and I am
          > trying to find out why but the code doesn't halt.
          >
          > Doug
          >
          > "Raghavendr a T V" <raagzvb@hotmai l.com> wrote in message
          > news:Or7meNmjEH A.2764@TK2MSFTN GP11.phx.gbl...[color=green]
          > > Hi Doug,
          > >
          > > I assume that you have this problem in an ASP.NET page.
          > > When debuggin ASP.net you'll often see this error. The breakpoint is[/color][/color]
          set[color=blue][color=green]
          > > but it claims it won't be hit. Typically this is because there is no[/color][/color]
          code[color=blue][color=green]
          > > running at the time. Once you actually are in the cycle of a page[/color]
          > request,[color=green]
          > > the breakpoints should work normally. This is "normal" behavior.
          > >
          > > Hope this helps you.
          > >
          > > Thanks
          > > Raghavendra
          > >
          > > "Doug Bell" <dug@bigpond> wrote in message
          > > news:eh9jxDmjEH A.636@TK2MSFTNG P12.phx.gbl...[color=darkred]
          > > > Hi I am trying to debug a bit of code (while learning .net) and I put[/color][/color][/color]
          in[color=blue][color=green][color=darkred]
          > > > some break points.
          > > >
          > > > I was surprised to find that the code didn't halt.
          > > > On further inspection I noticed that the Break Line inserted a "?" in[/color][/color]
          > the[color=green][color=darkred]
          > > > dot in the margin after the code ran.
          > > > The "Tool-Tip" says
          > > > "The break point will not currently be hit. No symbols have been[/color][/color][/color]
          loaded[color=blue][color=green]
          > > for[color=darkred]
          > > > this document."
          > > >
          > > > What does this mean?
          > > >
          > > > Doug
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • Rakesh Rajan

            #6
            RE: VB Not ASP

            Is this a Release or Debug build?

            "Doug Bell" wrote:
            [color=blue]
            > Hi Raghavendra,
            > No it is not ASP. It is a Windows Application written in VB .Net
            >
            > I can set the Breakpoint but when I run the code, I see the "?" in the brown
            > dot in the left margin and holding the cursor over it shows the tool tip
            > with the message. That message is only present after I start the application
            > and the breakpoint definitely doesn't work.
            >
            > When I close the form I have a message box asking the User if they want to
            > save any changes. The message box is openning even if no changes and I am
            > trying to find out why but the code doesn't halt.
            >
            > Doug
            >
            > "Raghavendr a T V" <raagzvb@hotmai l.com> wrote in message
            > news:Or7meNmjEH A.2764@TK2MSFTN GP11.phx.gbl...[color=green]
            > > Hi Doug,
            > >
            > > I assume that you have this problem in an ASP.NET page.
            > > When debuggin ASP.net you'll often see this error. The breakpoint is set
            > > but it claims it won't be hit. Typically this is because there is no code
            > > running at the time. Once you actually are in the cycle of a page[/color]
            > request,[color=green]
            > > the breakpoints should work normally. This is "normal" behavior.
            > >
            > > Hope this helps you.
            > >
            > > Thanks
            > > Raghavendra
            > >
            > > "Doug Bell" <dug@bigpond> wrote in message
            > > news:eh9jxDmjEH A.636@TK2MSFTNG P12.phx.gbl...[color=darkred]
            > > > Hi I am trying to debug a bit of code (while learning .net) and I put in
            > > > some break points.
            > > >
            > > > I was surprised to find that the code didn't halt.
            > > > On further inspection I noticed that the Break Line inserted a "?" in[/color][/color]
            > the[color=green][color=darkred]
            > > > dot in the margin after the code ran.
            > > > The "Tool-Tip" says
            > > > "The break point will not currently be hit. No symbols have been loaded[/color]
            > > for[color=darkred]
            > > > this document."
            > > >
            > > > What does this mean?
            > > >
            > > > Doug
            > > >
            > > >[/color]
            > >
            > >[/color]
            >
            >
            >[/color]

            Comment

            • Raghavendra  T V

              #7
              Re: Break point

              Hi Doug,

              Check this thread.



              Hope this solves your problem

              Thanks
              Raghavendra

              "Doug Bell" <dug@bigpond> wrote in message
              news:eh9jxDmjEH A.636@TK2MSFTNG P12.phx.gbl...[color=blue]
              > Hi I am trying to debug a bit of code (while learning .net) and I put in
              > some break points.
              >
              > I was surprised to find that the code didn't halt.
              > On further inspection I noticed that the Break Line inserted a "?" in the
              > dot in the margin after the code ran.
              > The "Tool-Tip" says
              > "The break point will not currently be hit. No symbols have been loaded[/color]
              for[color=blue]
              > this document."
              >
              > What does this mean?
              >
              > Doug
              >
              >[/color]


              Comment

              • Cor Ligthert

                #8
                Re: VB Not ASP

                Doug,

                Just when you set your breakpoint on a Dim or other declaration that has no
                code in it.

                Dim Doug as String 'here you can not set a breakpoint
                Dim Doub as String = "Doug" here you can set a breakpoint.

                I hope this helps?

                Cor


                Comment

                • Raghavendra  T V

                  #9
                  Re: VB Not ASP

                  Hi Doug,

                  Check this thread.



                  Hope this solves your problem

                  Thanks
                  Raghavendra


                  "Doug Bell" <dug@bigpond> wrote in message
                  news:%23l7DCnmj EHA.1904@TK2MSF TNGP09.phx.gbl. ..[color=blue]
                  > Hi Raghavendra,
                  > No it is not ASP. It is a Windows Application written in VB .Net
                  >
                  > I can set the Breakpoint but when I run the code, I see the "?" in the[/color]
                  brown[color=blue]
                  > dot in the left margin and holding the cursor over it shows the tool tip
                  > with the message. That message is only present after I start the[/color]
                  application[color=blue]
                  > and the breakpoint definitely doesn't work.
                  >
                  > When I close the form I have a message box asking the User if they want to
                  > save any changes. The message box is openning even if no changes and I am
                  > trying to find out why but the code doesn't halt.
                  >
                  > Doug
                  >
                  > "Raghavendr a T V" <raagzvb@hotmai l.com> wrote in message
                  > news:Or7meNmjEH A.2764@TK2MSFTN GP11.phx.gbl...[color=green]
                  > > Hi Doug,
                  > >
                  > > I assume that you have this problem in an ASP.NET page.
                  > > When debuggin ASP.net you'll often see this error. The breakpoint is[/color][/color]
                  set[color=blue][color=green]
                  > > but it claims it won't be hit. Typically this is because there is no[/color][/color]
                  code[color=blue][color=green]
                  > > running at the time. Once you actually are in the cycle of a page[/color]
                  > request,[color=green]
                  > > the breakpoints should work normally. This is "normal" behavior.
                  > >
                  > > Hope this helps you.
                  > >
                  > > Thanks
                  > > Raghavendra
                  > >
                  > > "Doug Bell" <dug@bigpond> wrote in message
                  > > news:eh9jxDmjEH A.636@TK2MSFTNG P12.phx.gbl...[color=darkred]
                  > > > Hi I am trying to debug a bit of code (while learning .net) and I put[/color][/color][/color]
                  in[color=blue][color=green][color=darkred]
                  > > > some break points.
                  > > >
                  > > > I was surprised to find that the code didn't halt.
                  > > > On further inspection I noticed that the Break Line inserted a "?" in[/color][/color]
                  > the[color=green][color=darkred]
                  > > > dot in the margin after the code ran.
                  > > > The "Tool-Tip" says
                  > > > "The break point will not currently be hit. No symbols have been[/color][/color][/color]
                  loaded[color=blue][color=green]
                  > > for[color=darkred]
                  > > > this document."
                  > > >
                  > > > What does this mean?
                  > > >
                  > > > Doug
                  > > >
                  > > >[/color]
                  > >
                  > >[/color]
                  >
                  >[/color]


                  Comment

                  • Raghavendra  T V

                    #10
                    Re: Break point

                    Hi Doug,

                    Check this thread.



                    Hope this solves your problem

                    Thanks
                    Raghavendra

                    "Doug Bell" <dug@bigpond> wrote in message
                    news:eh9jxDmjEH A.636@TK2MSFTNG P12.phx.gbl...[color=blue]
                    > Hi I am trying to debug a bit of code (while learning .net) and I put in
                    > some break points.
                    >
                    > I was surprised to find that the code didn't halt.
                    > On further inspection I noticed that the Break Line inserted a "?" in the
                    > dot in the margin after the code ran.
                    > The "Tool-Tip" says
                    > "The break point will not currently be hit. No symbols have been loaded[/color]
                    for[color=blue]
                    > this document."
                    >
                    > What does this mean?
                    >
                    > Doug
                    >
                    >[/color]


                    Comment

                    • Doug Bell

                      #11
                      Re: Break point Debug/Release?


                      Hi Raghavendra
                      Thanks, I followed the link:[color=blue]
                      > http://www.dotnet247.com/247referenc...32/162031.aspx[/color]
                      and solved the problem.

                      I don't quite understand what the problem was or the difference between a
                      Release and Debug.
                      I had been looking at the Properties and Configuration settings of the
                      project and must have changed the setting for "Active Solution
                      Configuration" from Debug to Release.

                      Thank you for your assistance.

                      Doug


                      Comment

                      • Doug Bell

                        #12
                        Re: Break point Debug/Release?


                        Hi Raghavendra
                        Thanks, I followed the link:[color=blue]
                        > http://www.dotnet247.com/247referenc...32/162031.aspx[/color]
                        and solved the problem.

                        I don't quite understand what the problem was or the difference between a
                        Release and Debug.
                        I had been looking at the Properties and Configuration settings of the
                        project and must have changed the setting for "Active Solution
                        Configuration" from Debug to Release.

                        Thank you for your assistance.

                        Doug


                        Comment

                        • Nick Malik

                          #13
                          Re: VB Not ASP

                          Do you have the contents of the /bin/debug directory stored in VSS or
                          another version control system? If so, are all the DLL and PDB files
                          checked out before you compile? Visual studio won't check out the contents
                          of the /bin/debug directories before the compile takes place, but if these
                          files are in VSS and not checked out, then the compiler cannot overwrite the
                          old PDB file with a new one. Therefore, the debugger cannot load the
                          symbols and debugging stops working.

                          My suggestion, don't put the PDB file into version control.

                          I don't know if this will help. The other responders seem to have hit on
                          all the other solutions I would have thought of. This is the only red
                          herring that I thought they missed.

                          Good Luck,
                          --- Nick

                          "Doug Bell" <dug@bigpond> wrote in message
                          news:%23l7DCnmj EHA.1904@TK2MSF TNGP09.phx.gbl. ..[color=blue]
                          > Hi Raghavendra,
                          > No it is not ASP. It is a Windows Application written in VB .Net
                          >
                          > I can set the Breakpoint but when I run the code, I see the "?" in the[/color]
                          brown[color=blue]
                          > dot in the left margin and holding the cursor over it shows the tool tip
                          > with the message. That message is only present after I start the[/color]
                          application[color=blue]
                          > and the breakpoint definitely doesn't work.
                          >
                          > When I close the form I have a message box asking the User if they want to
                          > save any changes. The message box is openning even if no changes and I am
                          > trying to find out why but the code doesn't halt.
                          >
                          > Doug
                          >
                          > "Raghavendr a T V" <raagzvb@hotmai l.com> wrote in message
                          > news:Or7meNmjEH A.2764@TK2MSFTN GP11.phx.gbl...[color=green]
                          > > Hi Doug,
                          > >
                          > > I assume that you have this problem in an ASP.NET page.
                          > > When debuggin ASP.net you'll often see this error. The breakpoint is[/color][/color]
                          set[color=blue][color=green]
                          > > but it claims it won't be hit. Typically this is because there is no[/color][/color]
                          code[color=blue][color=green]
                          > > running at the time. Once you actually are in the cycle of a page[/color]
                          > request,[color=green]
                          > > the breakpoints should work normally. This is "normal" behavior.
                          > >
                          > > Hope this helps you.
                          > >
                          > > Thanks
                          > > Raghavendra
                          > >
                          > > "Doug Bell" <dug@bigpond> wrote in message
                          > > news:eh9jxDmjEH A.636@TK2MSFTNG P12.phx.gbl...[color=darkred]
                          > > > Hi I am trying to debug a bit of code (while learning .net) and I put[/color][/color][/color]
                          in[color=blue][color=green][color=darkred]
                          > > > some break points.
                          > > >
                          > > > I was surprised to find that the code didn't halt.
                          > > > On further inspection I noticed that the Break Line inserted a "?" in[/color][/color]
                          > the[color=green][color=darkred]
                          > > > dot in the margin after the code ran.
                          > > > The "Tool-Tip" says
                          > > > "The break point will not currently be hit. No symbols have been[/color][/color][/color]
                          loaded[color=blue][color=green]
                          > > for[color=darkred]
                          > > > this document."
                          > > >
                          > > > What does this mean?
                          > > >
                          > > > Doug
                          > > >
                          > > >[/color]
                          > >
                          > >[/color]
                          >
                          >[/color]


                          Comment

                          Working...