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#
  4. Advise for debugging

Advise for debugging

Scheduled Pinned Locked Moved C#
debugging
6 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.
  • H Offline
    H Offline
    HAHAHA_NEXT
    wrote on last edited by
    #1

    Debuggin for me is a pain in the $ss. What sofisticated methods are there to debug programs easier. (Ie: something else then : Put breakpoints and press F11). There is a way of using trace, and logging also helps, but what else is there. Good practices are also welcome. (By the way i have already read The Standalone Programmer Series.)

    M T 2 Replies Last reply
    0
    • H HAHAHA_NEXT

      Debuggin for me is a pain in the $ss. What sofisticated methods are there to debug programs easier. (Ie: something else then : Put breakpoints and press F11). There is a way of using trace, and logging also helps, but what else is there. Good practices are also welcome. (By the way i have already read The Standalone Programmer Series.)

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      HAHAHA_NEXT wrote: Debuggin for me is a pain in the $ss Are you a programmer? :wtf: Well, you can use some class like Trace or Debug which have some methods to write information you want in a file,event viewer or output window. Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope

      H 1 Reply Last reply
      0
      • M Mazdak

        HAHAHA_NEXT wrote: Debuggin for me is a pain in the $ss Are you a programmer? :wtf: Well, you can use some class like Trace or Debug which have some methods to write information you want in a file,event viewer or output window. Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #3

        Mazdak wrote: Are you a programmer? Sheesh, no kidding! This is part of the trade. Get used to it! Trace and Debug with the default and custom TraceListener implementations can tell you some things, but it's not even CLOSE to what properly debugging your app and checking the state of variables throughout your object and related objects can tell you.

        Microsoft MVP, Visual C# My Articles

        M 1 Reply Last reply
        0
        • H Heath Stewart

          Mazdak wrote: Are you a programmer? Sheesh, no kidding! This is part of the trade. Get used to it! Trace and Debug with the default and custom TraceListener implementations can tell you some things, but it's not even CLOSE to what properly debugging your app and checking the state of variables throughout your object and related objects can tell you.

          Microsoft MVP, Visual C# My Articles

          M Offline
          M Offline
          Mazdak
          wrote on last edited by
          #4

          Heath Stewart wrote: but it's not even CLOSE to what properly debugging your app and checking the state of variables throughout your object and related objects can tell you Yah, but I thought it could be ease some of his pain in *ss. :-D ;) Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope

          H 1 Reply Last reply
          0
          • M Mazdak

            Heath Stewart wrote: but it's not even CLOSE to what properly debugging your app and checking the state of variables throughout your object and related objects can tell you Yah, but I thought it could be ease some of his pain in *ss. :-D ;) Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope

            H Offline
            H Offline
            HAHAHA_NEXT
            wrote on last edited by
            #5

            but it's not even CLOSE to what properly debugging your app and checking the state of variables throughout your object and related objects can tell you 1) This i know, but this is the slowest way of doing things, and works well when you can test a small part of your program. 2) As experienced programmers you must have other tricks then that. For example, i put a comment //WORKS on the part which works, so not checking it. Believeing that there is no more tricks, is like beliving that 2 + 2 is the only thing they teach us in math.

            1 Reply Last reply
            0
            • H HAHAHA_NEXT

              Debuggin for me is a pain in the $ss. What sofisticated methods are there to debug programs easier. (Ie: something else then : Put breakpoints and press F11). There is a way of using trace, and logging also helps, but what else is there. Good practices are also welcome. (By the way i have already read The Standalone Programmer Series.)

              T Offline
              T Offline
              Tom Larsen
              wrote on last edited by
              #6

              I believe someone wants a System.Diagnostics.FixIt class. :-) Debugger tools are like any other tool: A hammer drives nails and it can help build a house but it doesn't do that for you automatically. I could tell you how to use the VS.Net Debugger but you'll never gleen the useful tactics and tricks to spot errors easily without actually doing it yourself. The .Net SDK comes with a debugger...its functional but lacks bells and whistles. The debugger in VS.Net works well enough. But it just spits out data for you to figure out. The rest is up to you to figure out. For general debugging behavior you should look at System.Diagnostics.Debugger and System.Diagnostics.Debug (or heck the System.Diagnostcis namespace).

              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