In this lesson we'll be learning about breakpoints.
How to set and remove and break points and how to use F nine to run to the break points.
Let's get started.
Let's open the Untitled one correct me.
We run the X VB
the first team we need to do is to run to the entry point F nine so we are the entry point.
This is an example of a break point I said earlier.
So to set a break point you just have to double click.
In this column to set a break point to remove a break mine we double click can so if you wanted to celebrate
point here at Berkeley and you press F nine and you will run all the program line by line until you
reach this line so let's press F nine and you see it has come here then you can remove it fine by double
clicking and then you can set and you break point by double clicking here.
Press F nine again.
And you will run this exit could you execute this instruction and then come to here and stop so now
from when you are here you can remove the breakpoint if you won by double clicking add in press F it
and then now here if you want to set another breakpoint you can set it here if you like Oh here.
Anywhere you like but it has to be the next in the path of the execution.
That means it must be reachable when the program runs.
So.
So then possibly could are not reachable by default.
So you need to be careful where you set the breakpoint.
So in this case we can be sure that this instruction will be reachable because we are now here and it
could reduce execute sequence.
So if we press F nine you execute all the code which you if you press F nine again you execute all the
code here and he can come to here and stop.
So when he hits a brake line he will have a will pass.
As you can see on the bottom left he says pass ninety three means breakpoint so you can remove the earlier
breakpoint by double clicking and double clicking then he can continue execution by pressing it by pressing
f it.
And if you want to say an outbreak mind you can set it somewhere where the exhibition will come across
the construction.
So the next instructions to all be a scooter are when you see in this part.
So you can be sure if you set a breakpoint here you will definitely reach you and Julie.
So let's press F nine now.
After setting this breakpoint in China investigator on instruction and heat is required.
And so now the judge will not be taken as you can see.
And this is also not written in color.
So he will just move on to the next line.
So you press F it.
You keep on moving then if you only put an outbreak point he can double click here.
So you can send as many points as you want.
And if you want to see all the points that you have set you can click on this step breakpoints and you
can see the big bonus that has been set and the address of the idea for example this is a first break
point.
So we can double click on this.
Go to Ken.
This is the second point and double click on this and you can go.
So the address is here 4 0 1 1 e 9 refers to this address.
And the second point 4 0 1 2 0 4 refers to the second line.
So we can just remove the rate point by double clicking here or we can even remotely break point from
here by pressing delete on our keyboard or rightly remove Dan go back to a few.
So that's how we set and remove break points and break points.
Also useful for exiting loops.
So let's find a loop.
So we just press F it and try to find a loop you just keep pressing F it
and try to find a loop
Yes I think we find a loop.
So if we keep pressing f it he would keep on looping and looping and looping and looping sometimes.
You do not want to keep on pressing f it to keep on looping.
So what do we do.
We can set breakpoints outside of the loop.
But first you must determine where will the.
Could I see the loop.
So if you press F it the only place where you can see the loop is here because oh well here is a repeating
from here.
You would just repeat.
So the only place where you can see is here.
So you set a breakpoint probably I'll say here because from here you would jump outside the loop.
So you show break find here and now if you press F nine
true enough it has run over the loop.
And do you see that loop.
So now you're outside the loop and you can remove the break point and continue f it like this.
So this is how we use break points.
So that's all for this lesson.
I'll see you in the next one.