Hello in this video I will show you how you can debug your code. Sometimes if when once you execute some operation you will beat you'll find some errors coming or unexpected result is coming not the correct result and you and you want to trace your code what actually why is this is having and sometimes your code is bit complicated function call function and current function calls a function so on. So, it will be hard to write system out print line system to print line to print some result in the log and you can check the console look. Why is the result is coming like this. So, you can write run your application in debug mode in gdb toolbar so that you can trace actually step by step what is the result and everything. So, in this video I will show you how you can debug your code or run your ADF application in debug mode.
I created symbol GC for me tuition was one row one bottom call validate. And here's the email enter email address input text. What I need to do I just want to use or to enter email address and I will check this email address exist in the in between me and Bruce validate if same IP address is exist I will display and successful message or whatever and if it does not exist, I will display an error message. So, what I will do now I will go for intermediaries and I will go for binding here and let us bind this component. So, I would create muy bien muy bien. Bien and then we come right.
Emir come bone okay. And we will Go for the bottom the bottom here and in the common beans that action right add action okay. So, what I need to do in the very date First I will get the value of the image so I will call it string email equal or we can call here okay drink image equal image component get the value Cuz he gets an email component to get in value not to drink. So we will get the email address after that we need to create another function private Boolean is an image exists this function and it will receive image This function will connect to the database and we'll check if that even exists or not. So this is a sample code for how to call a security statement from back pain because update this quote. So here I will select Email from headphones is in between so I would siddik email From the employees were Emir equal to give me a symbol show the secure secure okay.
So here I will return true if it is has nicus it means there is a result so it will return true otherwise we will return false okay so Because right to get a connection This is a get a connection and we can just reformat okay. So, this function now will receive the email and it will run slit emit from embroideries will emit equal the image and if there are in a row it will return the truth means, it means the image is correct, otherwise it will return false So, here I will receive it So, I will write Boolean is an image this equal image exists who is since me If is you me says it's here when you chose to display successful message and this is we need to display error message His face is going to take hissed and our message would be me exists to exist whatever and we can cope with this here but is Tito severity info we can see is a rarity error me does not exist And this one.
Okay, so now we write our code wants to user enter a mail address, I will check if it exists or not. And they will display a message that has run and check our code. Okay, so now this is the internet address and this is when it did. So for example, I had here this domain to calm so let's add here test domain.com and press validate. You will find the error handling and you don't know from where this error is heaven. Okay, so what you can do is you can run this in the debug mode We come to work our code.
This is what we will do. The kista videos will see you because of it. You