Jump to content

Watches and Breakpoints?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
What is the difference between these two? I know how to do watched from C# and I understand what these are... but what are breakpoints?

#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Breakpoints are used for debugging. You set it on a certain line of code. Then, you run the project as normal. Just before the program executes that line of code, the IDE breaks the code into debugging mode, where you can execute the code line by line to see if everything it working the way you want it to.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#3
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
So they are just like watches?

#4
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Sorry, I forgot what watches are. Remind me?
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#5
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
You set a breakpoint but instead you press F11 and move line by line with the code.

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
A breakpoint is a line of code you want to stop at. A watch is a variable you want to inspect.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#7
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
In VS, the Watches window keeps tabs of all the variables and their values - but, of course, you can use the Immediate Window to retrieve a value also.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums