Transcript for:
Understanding Static and Dynamic Breakpoints

hello everyone we will continue the topic and we will learn more more features of that debugging mode in this topic in this video we will cover what is static and dynamic breakpoint how we can put static and dynamic breakpoints in the program as of now if you remember we are always doing that debugging we are putting a session breakpoint by this red mark option now we will learn what is static and dynamic breakpoint and how we can use and how we can debug with the help of this particular topic what is static and what is dynamic static breakpoint are user breakpoint it means they are not dependent on the user suppose i will go for simple example suppose there is one user whose user id is trainee01 there is another user whose id is trainee zero trainee zero one is putting a static break point in the program so whenever trainee 0 2 will run that program he will also enter into debugging mode because trainee 0 one has put a static break point and static break point our user independent breakpoint if one user put the static breakpoint any other user who is running the same program that breakpoint will also applicable to all the users this is user independent breakpoint or it is also called as static breakpoint now what is dynamic breakpoint dynamic breakpoints are user dependent breakpoints it means if trainee01 put a user dependent breakpoint it will not applicable to any other user it means trainee zero one which is only only go with os training zero one will only go to debugging mode for all other users that breakpoint will not be applicable now question comes how we can put a static breakpoint and how we can put a dynamic breakpoint or how we can put a user independent breakpoint or user dependent breakpoint firstly we will learn how to put a static breakpoint suppose i am going to the program suppose this is the program [Music] in this program i am putting a static breakpoint static breakpoint so how to put a static breakpoint i'll just wait whenever static breakpoint we can put break hyphen point this is the keyword which is used to put a static breakpoint whenever i will run the program program will stop here any other user who is running the program program will stop here suppose i will show you see i have not put any session break quite nothing i just put a break hyphen point statement this is a static static breakpoint i'm running the program i'm going for execute and you can see my program automatically stops on the 12th number line and it is applicable to all the users who is running this program they will automatically enter into debugging more now we will see how to put a dynamic breakpoint now suppose how to put a dynamic breakpoint suppose i am writing break space my username this is the way to put a dynamic breakpoint or user dependent breakpoint break space your username breakspace username i'm activating the program my sap login id is s4 aug 13 and i put a break point break my sap login id so whenever i will run the program i will enter into debugging mode but for all the other users this breakpoint will not be applicable because it is a user dependent breakpoint suppose i will run the program i am giving some input i am going to execute my program automatically stopped here because my sap login id is also this and i put a break my login so this breakpoint is only only applicable to me this is a user dependent breakpoint now the question comes how you should go for debugging you should go for user dependent breakpoints or user independent breakpoints whenever you are going for that never never go for user independent breakpoint suppose simple you are analyzing a program why you are hampering other users that they should also go to debugging mode so never go for never go for static breakpoints simple you put a break hyphen point statement in the program and by mistake that code move to the production system then what will happen customer will also enter into the debugging mode or suppose whoever is running the program in the quality he will also go to debugging mode so never never go for static breakpoint if you want to debug a program go for your id break space username or if you do not want to go for this we have the option you can debug the code with the help of these red marks yourself so this is the way but never never prefer static break points because if you will put a static break point it means you are saying other users also to go to that debugging mode but that is not preferable so what we learned in this particular video what is static breakpoint how we can give the static breakpoint what is dynamic breakpoint how we can give the dynamic breakpoints and dynamic breakpoints are always preferable whenever you want to do the debugging because those are user dependent breakpoints if i'm writing break hyphen point statement it is a user independent breakpoint if i'm writing break space username that is user dependent break point so that's it in this video thank you