Click here to Skip to main content
15,881,709 members
Home / Discussions / C#
   

C#

 
GeneralRe: Array of Strings.... Pin
glennPattonWork316-May-12 4:18
professionalglennPattonWork316-May-12 4:18 
AnswerRe: Array of Strings.... Pin
Luc Pattyn16-May-12 4:31
sitebuilderLuc Pattyn16-May-12 4:31 
GeneralRe: Array of Strings.... Pin
glennPattonWork316-May-12 4:34
professionalglennPattonWork316-May-12 4:34 
GeneralRe: Array of Strings.... Pin
glennPattonWork316-May-12 6:08
professionalglennPattonWork316-May-12 6:08 
Questionhelp me in c# Pin
ri198716-May-12 0:13
ri198716-May-12 0:13 
AnswerRe: help me in c# Pin
ri198716-May-12 0:14
ri198716-May-12 0:14 
GeneralRe: help me in c# Pin
Killzone DeathMan16-May-12 0:27
Killzone DeathMan16-May-12 0:27 
GeneralRe: help me in c# Pin
Pete O'Hanlon16-May-12 0:27
mvePete O'Hanlon16-May-12 0:27 
In the code that calls the method you are getting an exception in, put a breakpoint on the line that calls the method (you can do this by pressing F9). Run your program in debug mode and when the program hits the breakpoint, it will pause execution. At this point, press F11 to step into the method. Check that the parameters that you have passed in are what you would expect. Now, use the step over command (F10) to step over individual code lines, and use step into (F11) to inspect methods that are of interest to you.

Check the values of variables as you progress to determine where the calculation goes wrong (if that's what your problem is), and to check that the right value gets allocated to the right place. This is going to require a lot of patience on your part, so take your time. It also means that you are going to have to be aware of what values you should get at what point.

And that, in a nutshell, is how you debug it.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: help me in c# Pin
ri198716-May-12 0:57
ri198716-May-12 0:57 
GeneralRe: help me in c# Pin
Dave Kreskowiak16-May-12 1:38
mveDave Kreskowiak16-May-12 1:38 
GeneralRe: help me in c# Pin
Pete O'Hanlon16-May-12 1:43
mvePete O'Hanlon16-May-12 1:43 
GeneralRe: help me in c# Pin
Dave Kreskowiak16-May-12 7:59
mveDave Kreskowiak16-May-12 7:59 
GeneralRe: help me in c# Pin
Pete O'Hanlon16-May-12 1:41
mvePete O'Hanlon16-May-12 1:41 
Questionhelp me Pin
ri198715-May-12 23:35
ri198715-May-12 23:35 
AnswerRe: help me Pin
Pete O'Hanlon15-May-12 23:47
mvePete O'Hanlon15-May-12 23:47 
GeneralRe: help me Pin
ri198716-May-12 0:07
ri198716-May-12 0:07 
GeneralRe: help me Pin
ri198716-May-12 0:09
ri198716-May-12 0:09 
GeneralRe: help me Pin
Killzone DeathMan16-May-12 0:23
Killzone DeathMan16-May-12 0:23 
Questiondefines Pin
columbos1492715-May-12 22:42
columbos1492715-May-12 22:42 
AnswerRe: defines Pin
Pete O'Hanlon15-May-12 22:52
mvePete O'Hanlon15-May-12 22:52 
AnswerRe: defines Pin
Andy41115-May-12 23:29
Andy41115-May-12 23:29 
AnswerRe: defines Pin
PIEBALDconsult16-May-12 3:29
mvePIEBALDconsult16-May-12 3:29 
QuestionUpdate database SQL via C# Pin
jojoba201115-May-12 22:32
jojoba201115-May-12 22:32 
AnswerRe: Update database SQL via C# Pin
Pete O'Hanlon15-May-12 23:21
mvePete O'Hanlon15-May-12 23:21 
QuestionRe: Update database SQL via C# Pin
jojoba201116-May-12 5:52
jojoba201116-May-12 5:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.