Debugging variables = nothing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Colin Graham

    Debugging variables = nothing

    This is probably something small but when i am debugging my vb.net
    class library code im not able to see the values of any of the
    variables when i hover my mouse over them.

    This is my first attempt at class coding. What is the issue ???? is it
    something to do with my variable declaration e.g., Private, Dim,
    Public

    Any help appreciated as it is quite difficult to debug at the minute.

    Thanks in advance

    Regards


    Colin Graham
  • Chris Dunaway

    #2
    Re: Debugging variables = nothing

    Have you tried looking at the Locals window? Or right clicking on the
    variable and choose add watch? Not sure what you mean.

    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: Debugging variables = nothing

      "Colin Graham" <csgraham74@hot mail.com> schrieb:[color=blue]
      > This is probably something small but when i am debugging my vb.net
      > class library code im not able to see the values of any of the
      > variables when i hover my mouse over them.
      >
      > This is my first attempt at class coding. What is the issue ???? is it
      > something to do with my variable declaration e.g., Private, Dim,
      > Public[/color]

      Are you sure you run your applications in debug mode, which means that
      "Debug" is selected in the configuration combobox which is embedded into the
      IDE's toolbar? If yes, right-click a variable in debug mode and choose
      "Quick watch" from its context menu. Does the quick watch window show the
      variable's contents?

      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

      Comment

      • Colin Graham

        #4
        Re: Debugging variables = nothing

        Im still having no luck with this and i dont understand why. All my
        other projects that are linked in this solution can display the value
        of the variable when i hover over it but not this one. its obviously
        some debugging setting. The quick watch didnt show the value of the
        variable either but they do have values as the code runs correctly
        until i get an error.

        any more help appreciated.


        "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message news:<#WFvEy5DF HA.512@TK2MSFTN GP15.phx.gbl>.. .[color=blue]
        > "Colin Graham" <csgraham74@hot mail.com> schrieb:[color=green]
        > > This is probably something small but when i am debugging my vb.net
        > > class library code im not able to see the values of any of the
        > > variables when i hover my mouse over them.
        > >
        > > This is my first attempt at class coding. What is the issue ???? is it
        > > something to do with my variable declaration e.g., Private, Dim,
        > > Public[/color]
        >
        > Are you sure you run your applications in debug mode, which means that
        > "Debug" is selected in the configuration combobox which is embedded into the
        > IDE's toolbar? If yes, right-click a variable in debug mode and choose
        > "Quick watch" from its context menu. Does the quick watch window show the
        > variable's contents?[/color]

        Comment

        • Herfried K. Wagner [MVP]

          #5
          Re: Debugging variables = nothing

          Colin,

          "Colin Graham" <csgraham74@hot mail.com> schrieb:[color=blue]
          > Im still having no luck with this and i dont understand why. All my
          > other projects that are linked in this solution can display the value
          > of the variable when i hover over it but not this one. its obviously
          > some debugging setting. The quick watch didnt show the value of the
          > variable either but they do have values as the code runs correctly
          > until i get an error.[/color]

          You can delete your project's "bin" and "obj" folders and recompile the
          project.

          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

          Comment

          • Colin Graham

            #6
            Re: Debugging variables = nothing

            Thanks again for your time but unfortunately still no joy with this
            issue. its making it impossible to debug. is this a known issue ??? do
            you know if there are any service packs availabe for VS 2003 ???

            thanks again


            colin graham


            "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message news:<uEylfEDEF HA.3924@TK2MSFT NGP09.phx.gbl>. ..[color=blue]
            > Colin,
            >
            > "Colin Graham" <csgraham74@hot mail.com> schrieb:[color=green]
            > > Im still having no luck with this and i dont understand why. All my
            > > other projects that are linked in this solution can display the value
            > > of the variable when i hover over it but not this one. its obviously
            > > some debugging setting. The quick watch didnt show the value of the
            > > variable either but they do have values as the code runs correctly
            > > until i get an error.[/color]
            >
            > You can delete your project's "bin" and "obj" folders and recompile the
            > project.[/color]

            Comment

            • Herfried K. Wagner [MVP]

              #7
              Re: Debugging variables = nothing

              Colin,

              "Colin Graham" <csgraham74@hot mail.com> schrieb:[color=blue]
              > Thanks again for your time but unfortunately still no joy with this
              > issue. its making it impossible to debug. is this a known issue ??? do
              > you know if there are any service packs availabe for VS 2003 ???[/color]

              At least I have never experienced this problem. What you can do is trying
              to build a short but complete program that causes this behavior.

              --
              M S Herfried K. Wagner
              M V P <URL:http://dotnet.mvps.org/>
              V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

              Comment

              Working...