1
00:00:00,060 --> 00:00:06,150
So let us try to understand what a dark hole that we are utilizing for this demonstration, and then

2
00:00:06,150 --> 00:00:11,430
we will be understanding the different options that we have to use a breakpoint, right?

3
00:00:11,430 --> 00:00:13,170
So let it just proceed.

4
00:00:13,250 --> 00:00:17,400
OK, here we declare one global variable and we initialize it to a zero rate.

5
00:00:17,760 --> 00:00:20,640
Then we have a function that returns the value, right?

6
00:00:20,640 --> 00:00:22,770
So we named it as multiplication.

7
00:00:23,040 --> 00:00:23,430
OK.

8
00:00:23,550 --> 00:00:30,210
This have two arguments, so this will take the two input I'll print from end user and then performing

9
00:00:30,210 --> 00:00:31,020
multiplication.

10
00:00:31,260 --> 00:00:34,230
OK, and then returned the result of multiplication now.

11
00:00:34,260 --> 00:00:39,000
And you could also observe that in this function, OK, we declare one local variable.

12
00:00:39,000 --> 00:00:42,260
We named it as local, underscore mult.

13
00:00:42,540 --> 00:00:48,570
OK, and then this basically refers to the result of multiplication that is whatever data that user

14
00:00:48,570 --> 00:00:48,940
input.

15
00:00:49,070 --> 00:00:54,450
OK, so it will be computing a multiplication of it, storing it into a local and underscore score model.

16
00:00:54,720 --> 00:00:57,480
OK, and then this is what we are retaining, right?

17
00:00:57,480 --> 00:01:04,490
So function will basically return a multiplication of into basic agenda behind creating such functions.

18
00:01:04,500 --> 00:01:10,110
You understand how a local variable behave when we perform our debugging, right?

19
00:01:10,260 --> 00:01:13,410
Here we have a global variable and here we have a local variable.

20
00:01:14,070 --> 00:01:16,530
And this is local to this function multiplication.

21
00:01:16,540 --> 00:01:22,930
Similarly, we have and other function which would add to this doesn't return anything, right?

22
00:01:22,950 --> 00:01:27,840
So the stakes are to input and then basically return the result of the addition, right?

23
00:01:27,870 --> 00:01:33,720
So here also we have a local variable, which we refer to as local and disconnect that compute and additional

24
00:01:33,720 --> 00:01:34,470
P and Q.

25
00:01:34,770 --> 00:01:39,390
And then finally, s OK is equal to that result of variation.

26
00:01:39,570 --> 00:01:42,660
So these are the two function that we are utilizing in this demonstration.

27
00:01:43,020 --> 00:01:44,310
Now if you go to a mean code.

28
00:01:44,550 --> 00:01:49,920
So we have two variable one for storing the result of variation and ideal for storing the result of

29
00:01:49,920 --> 00:01:50,820
multiplication, right?

30
00:01:51,240 --> 00:01:57,480
Now we know that a mule function returns the result of multiplication, so we will be storing it into

31
00:01:57,480 --> 00:01:58,110
a Murie.

32
00:01:58,110 --> 00:02:01,140
But OK, we hear the two numbers that we are inputting.

33
00:02:01,140 --> 00:02:01,800
Is it any?

34
00:02:02,400 --> 00:02:07,080
It is basically perform a multiplication, which will be giving us a value of sixteen.

35
00:02:07,320 --> 00:02:11,910
And since this returns the value so that the return value will be storing an enemy, right?

36
00:02:12,660 --> 00:02:14,580
And when we consider an addition.

37
00:02:14,610 --> 00:02:19,050
OK, so here we have a third argument which represent our output, right?

38
00:02:19,380 --> 00:02:22,890
So these are the two function that we utilize over here.

39
00:02:23,850 --> 00:02:24,260
OK.

40
00:02:24,540 --> 00:02:29,280
And then we are also printing the value of a result of multiplication and addition.

41
00:02:29,310 --> 00:02:29,550
Right.

42
00:02:29,850 --> 00:02:37,000
So whenever you want to add a breakpoint, the simplest strategy is you choose the line number.

43
00:02:37,020 --> 00:02:38,670
OK, and then double click on it.

44
00:02:38,680 --> 00:02:45,070
For example, if you do not able to see this line number, you just need to right click over here,

45
00:02:45,120 --> 00:02:48,630
OK, at an extreme left side of your editor.

46
00:02:48,660 --> 00:02:50,570
So this represent our text ready to direct.

47
00:02:50,580 --> 00:02:55,140
So you will be right clicking and then you will see you get an option to.

48
00:02:56,300 --> 00:03:01,160
Have a line number on an index ready to write, so if you just unselected, if you have this kind of

49
00:03:01,160 --> 00:03:08,720
a Jew, so you just need to click on the extreme left of your text editor and then you enable a line

50
00:03:08,720 --> 00:03:09,050
number?

51
00:03:09,120 --> 00:03:09,350
Right.

52
00:03:09,360 --> 00:03:18,500
So once you have a line number, for example, if you want to add the breakpoint, OK to this to function,

53
00:03:18,500 --> 00:03:18,710
right?

54
00:03:18,710 --> 00:03:21,740
So to either break into this, the process is very simple.

55
00:03:21,740 --> 00:03:27,650
You just go on a line where you want to add a breakpoint, then just double click on it, right?

56
00:03:27,660 --> 00:03:33,170
So as soon as you double click on it, you'll be finding you get blue bubble over here and that represent

57
00:03:33,170 --> 00:03:34,850
that you have added people.

58
00:03:34,910 --> 00:03:39,830
Similarly, the other option that you have is, for example, if I want to add a breakpoint over here,

59
00:03:40,040 --> 00:03:47,120
so I'll just be clicking right clicking on that line line number 14 and then you have an option to add

60
00:03:47,150 --> 00:03:48,110
a pretty quick rate.

61
00:03:48,140 --> 00:03:51,200
So you just need to select that and apply and close.

62
00:03:51,230 --> 00:03:53,030
So that will automatically had a break point.

63
00:03:53,210 --> 00:03:57,950
So these are the two ways that you have to choose the line number where you want to add a breakpoint

64
00:03:57,950 --> 00:03:59,440
double click on it.

65
00:03:59,450 --> 00:04:03,830
That will automatically add a great point right now if you want to delete a breakpoint, so you could

66
00:04:03,830 --> 00:04:08,870
either right click on a breakpoint, OK, and then you have an option to disable every point.

67
00:04:08,870 --> 00:04:11,780
Or you could just double click on a breakpoint.

68
00:04:11,840 --> 00:04:14,710
OK, and that will automatically delete the breakpoint, right?

69
00:04:14,720 --> 00:04:21,050
So by double clicking on a line, you will either write a breakpoint or you could also delete a breakpoint

70
00:04:21,050 --> 00:04:26,060
if you have added an existing breakpoint to that line, right?

71
00:04:26,360 --> 00:04:29,870
So we go to a mean good and now we'll try to either be quite right.

72
00:04:29,870 --> 00:04:35,200
So here when we are computing the result of multiplication and sorting in a variable, here we want

73
00:04:35,200 --> 00:04:38,300
to add our first frequency related, just double click on it.

74
00:04:38,720 --> 00:04:40,400
This will add a break point, OK?

75
00:04:40,610 --> 00:04:45,400
And then for addition, also we want to Arabic one, so double click on line number 30.

76
00:04:45,410 --> 00:04:49,490
So this will add a break point at line number 28 and line number 13, right?

77
00:04:49,490 --> 00:04:55,090
So this is the step one you need to follow when we wish to debug our code utilizing object.
