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. Break Point

Break Point

Scheduled Pinned Locked Moved C#
question
6 Posts 3 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.
  • K Offline
    K Offline
    kibromg
    wrote on last edited by
    #1

    Hi All, My break points doesnt not work.I break on a certain part of my code and when i run the code it doesnt stop at the break point. Could you please advice? Thank you in Advance. Many thanks

    H 1 Reply Last reply
    0
    • K kibromg

      Hi All, My break points doesnt not work.I break on a certain part of my code and when i run the code it doesnt stop at the break point. Could you please advice? Thank you in Advance. Many thanks

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      This often means that a piece of code that you expected to be called isn't, for some reason. Usually, because of an error in coding, or it is with me. :) What I do is to place a break point in the calling code for your original break, and keep moving up the calling chain until something bites. When that happens, step through until you discover the error. If that doesn't work, I go for a cup of coffee and a lie down.

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      K 1 Reply Last reply
      0
      • H Henry Minute

        This often means that a piece of code that you expected to be called isn't, for some reason. Usually, because of an error in coding, or it is with me. :) What I do is to place a break point in the calling code for your original break, and keep moving up the calling chain until something bites. When that happens, step through until you discover the error. If that doesn't work, I go for a cup of coffee and a lie down.

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        K Offline
        K Offline
        kibromg
        wrote on last edited by
        #3

        If that doesn't work, I go for a cup of coffee and a lie down Hahahahahah..... Thanks very much Henry.Its Much appreciated.The problem with my debugging is even i start a new project that doesnt have any code in it and i place a break point it doesnt stop at it.Any idea? Thank you.

        H 1 Reply Last reply
        0
        • K kibromg

          If that doesn't work, I go for a cup of coffee and a lie down Hahahahahah..... Thanks very much Henry.Its Much appreciated.The problem with my debugging is even i start a new project that doesnt have any code in it and i place a break point it doesnt stop at it.Any idea? Thank you.

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          If your new project doesn't have any code, how do you set a breakpoint? You can only set a breakpoint on a line of reachable code, without getting a warning.

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

          K 1 Reply Last reply
          0
          • H Henry Minute

            If your new project doesn't have any code, how do you set a breakpoint? You can only set a breakpoint on a line of reachable code, without getting a warning.

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            K Offline
            K Offline
            kibromg
            wrote on last edited by
            #5

            Thank you once again.I just declared a variable and assign a value to it.

            OriginalGriffO 1 Reply Last reply
            0
            • K kibromg

              Thank you once again.I just declared a variable and assign a value to it.

              OriginalGriffO Offline
              OriginalGriffO Offline
              OriginalGriff
              wrote on last edited by
              #6

              This may sound realy stupid, but are you actually debugging? If you create a new (for example) console project, and enter a single line

              using System;
              using System.Collections.Generic;
              using System.Linq;
              using System.Text;

              namespace Demo
              {
              class Program
              {
              static void Main(string[] args)
              {
              int i = 1;
              }
              }
              }

              Then click to the left of the line to create a breakpoint, does a red dot appear? When you run it, how are you doing that? Try running it from the menu "Debug...Start debugging" What happens when you start the program using "Debug...Step into"? I apologise if this seems a little too simple and basic, but sometimes it is worth starting at the begining.

              No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              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