CIE AS & A Level Computer Science, section 5.2 (Language translators)
What an IDE is
An Integrated Development Environment (IDE) is a software package that combines the tools a programmer needs in one place: an editor, a translator (compiler or interpreter), and debugging tools.
Features that help with coding
- Context-sensitive prompts: as you type, the IDE suggests commands, variable names and the parameters a function needs (auto-completion).
Features for initial error detection
- Dynamic syntax checks: the editor checks the code as you type and highlights syntax errors, such as a missing bracket, straight away.
Features for presentation
- Prettyprint: the code is shown with colour for keywords, strings and comments, and indentation to make it readable.
- Expand and collapse code blocks: functions and loops can be hidden or shown, so you can focus on one part of a long program.
Features for debugging
| Feature | Purpose |
|---|---|
| Single stepping | runs the program one statement at a time so you can see what each does |
| Breakpoints | stop the program at a chosen line, so you can check the program's state there |
| Variable and expression watch | shows the current values of variables and expressions as the program runs |
| Report window | shows the output and error messages and values collected during the run |
Benefits
An IDE makes writing, testing and fixing a program faster and less error-prone.
Common mistake: describing an IDE as "a programming language". It is a tool that supports writing programs in a language. Also, a breakpoint does not stop the program permanently: it pauses it so you can inspect it.
Exam tip: group features into coding, error detection, presentation and debugging, and say what each does. Use the correct names: single stepping, breakpoints, prettyprint.
Check yourself
What does single stepping allow a programmer to do?
Run the program one statement at a time to see what happens at each step.
What is a breakpoint?
A chosen line at which the program pauses so values can be inspected.
Give one feature of an IDE that helps to find syntax errors.
Dynamic syntax checking, which highlights errors as you type.