So let us try to understand what a dark hole that we are utilizing for this demonstration, and then
we will be understanding the different options that we have to use a breakpoint, right?
So let it just proceed.
OK, here we declare one global variable and we initialize it to a zero rate.
Then we have a function that returns the value, right?
So we named it as multiplication.
OK.
This have two arguments, so this will take the two input I'll print from end user and then performing
multiplication.
OK, and then returned the result of multiplication now.
And you could also observe that in this function, OK, we declare one local variable.
We named it as local, underscore mult.
OK, and then this basically refers to the result of multiplication that is whatever data that user
input.
OK, so it will be computing a multiplication of it, storing it into a local and underscore score model.
OK, and then this is what we are retaining, right?
So function will basically return a multiplication of into basic agenda behind creating such functions.
You understand how a local variable behave when we perform our debugging, right?
Here we have a global variable and here we have a local variable.
And this is local to this function multiplication.
Similarly, we have and other function which would add to this doesn't return anything, right?
So the stakes are to input and then basically return the result of the addition, right?
So here also we have a local variable, which we refer to as local and disconnect that compute and additional
P and Q.
And then finally, s OK is equal to that result of variation.
So these are the two function that we are utilizing in this demonstration.
Now if you go to a mean code.
So we have two variable one for storing the result of variation and ideal for storing the result of
multiplication, right?
Now we know that a mule function returns the result of multiplication, so we will be storing it into
a Murie.
But OK, we hear the two numbers that we are inputting.
Is it any?
It is basically perform a multiplication, which will be giving us a value of sixteen.
And since this returns the value so that the return value will be storing an enemy, right?
And when we consider an addition.
OK, so here we have a third argument which represent our output, right?
So these are the two function that we utilize over here.
OK.
And then we are also printing the value of a result of multiplication and addition.
Right.
So whenever you want to add a breakpoint, the simplest strategy is you choose the line number.
OK, and then double click on it.
For example, if you do not able to see this line number, you just need to right click over here,
OK, at an extreme left side of your editor.
So this represent our text ready to direct.
So you will be right clicking and then you will see you get an option to.
Have a line number on an index ready to write, so if you just unselected, if you have this kind of
a Jew, so you just need to click on the extreme left of your text editor and then you enable a line
number?
Right.
So once you have a line number, for example, if you want to add the breakpoint, OK to this to function,
right?
So to either break into this, the process is very simple.
You just go on a line where you want to add a breakpoint, then just double click on it, right?
So as soon as you double click on it, you'll be finding you get blue bubble over here and that represent
that you have added people.
Similarly, the other option that you have is, for example, if I want to add a breakpoint over here,
so I'll just be clicking right clicking on that line line number 14 and then you have an option to add
a pretty quick rate.
So you just need to select that and apply and close.
So that will automatically had a break point.
So these are the two ways that you have to choose the line number where you want to add a breakpoint
double click on it.
That will automatically add a great point right now if you want to delete a breakpoint, so you could
either right click on a breakpoint, OK, and then you have an option to disable every point.
Or you could just double click on a breakpoint.
OK, and that will automatically delete the breakpoint, right?
So by double clicking on a line, you will either write a breakpoint or you could also delete a breakpoint
if you have added an existing breakpoint to that line, right?
So we go to a mean good and now we'll try to either be quite right.
So here when we are computing the result of multiplication and sorting in a variable, here we want
to add our first frequency related, just double click on it.
This will add a break point, OK?
And then for addition, also we want to Arabic one, so double click on line number 30.
So this will add a break point at line number 28 and line number 13, right?
So this is the step one you need to follow when we wish to debug our code utilizing object.