Jump to content

can somebody give me a simple easy to understand explanation of single stepping and watches(quick watch) in Visual Studio (C#).

 

The assignment I'm doing asks me to provide a written description and explain how each can assist in finding or fixing errors.

 

I also need to show evidence I used them when writing my code, which I didn't because I have no idea what they do.

 

Thanks in advance!

Link to comment
https://linustechtips.com/topic/358037-need-help-with-programming-work/
Share on other sites

Link to post
Share on other sites

These are debugging operations.

 

A debugger allows you to follow along in the source code while your program executes. "Stepping" refers to advancing by one line of executable code. Stepping usually is expected to step "into" function, meaning that if the next line is a function you will be taken to the source code of that function.

 

A watch allows you to monitor the value of a variable in the current scope. With some debuggers you can specify logic that fire when the variable changes.

Link to post
Share on other sites

These are debugging operations.

 

A debugger allows you to follow along in the source code while your program executes. "Stepping" refers to advancing by one line of executable code. Stepping usually is expected to step "into" function, meaning that if the next line is a function you will be taken to the source code of that function.

 

A watch allows you to monitor the value of a variable in the current scope. With some debuggers you can specify logic that fire when the variable changes.

I have an idea as to how stepping works but the "watch" confuses the hell outa me :/

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×