Explain the debugging process and explain the debugging facilities available in the IDE.
What is debugging process in IDE?
Debugging is the process of working through the program in a systematic way to eliminate any flaws or glitches. A debugger program is usually included within the IDE .
If a section of code gives you different results from what you would expect, try to make that section of code work in isolation. You may have to give it 'dummy' values to make it work.
If there is something that is supposed to happen but does not, find the section of code that is responsible and make sure that it is running when you expect it to.
If something is happening that should not be, find the section of your code that makes that particular thing happen.
When a computer program does not do what you expect, it is likely that the algorithm that you designed is flawed. Go back to your algorithm and separate it into parts and see how this relates to the program that you have created.
Being able to see what is happening inside a program is very useful when debugging.
You can use print statements to see what value is being held in a variable and remove it later, or use specifically designed debugging tools. Python includes a logging module that allows you to print values and analyse errors.
What are the debugging facilities available in IDE?
The IDE's source debugger provides a unified environment for multiprocess and multithreaded debugging of programs written in C, C++, Embedded C++, or Java. You can debug such programs concurrently on one or multiple remote target systems.
Comments
Leave a comment