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