๐ Can explain IDEs
Professional software engineers often write code using Integrated Development Environments (IDEs). IDEs support all development-related work within the same tool.
An IDE generally consists of:
Examples of popular IDEs:
Some Web-based IDEs have appeared in recent times too e.g., Amazon's Cloud9 IDE.
Some experienced developers, in particular those with a UNIX background, prefer lightweight yet powerful text editors with scripting capabilities (e.g. Emacs) over heavier IDEs.
All.
Explanation: While all of these features may not be present in some IDEs, most do have these features in some form or other.
๐ Can explain debugging
Debugging is the process of discovering defects in the program. Here are some approaches to debugging:
๐ By inserting temporary print statements: This is an ad-hoc approach in which print statements are inserted in the program to print information relevant to debugging, such as variable values. e.g. Exiting process() method, x is 5.347
.
This approach is not recommended due to these reasons.
๐ By manually tracing through the code: Otherwise known as โeye-ballingโ, this approach doesn't have the cons of the previous approach, but it too is not recommended (other than as a 'quick try') due to these reasons:
๐ Using a debugger: A debugger tool allows you to pause the execution, then step through one statement at a time while examining the internal state if necessary. Most IDEs come with an inbuilt debugger. This is the recommended approach for debugging.