[fixes] some language and spelling fixes
This commit is contained in:
parent
01298b95d9
commit
7884e1842b
@ -439,11 +439,11 @@ that help to solve the problem.
|
|||||||
steps for correctness.
|
steps for correctness.
|
||||||
\item Call for help and explain the program to someone else. When you
|
\item Call for help and explain the program to someone else. When you
|
||||||
do this, start at the beginning and walk through the program line by
|
do this, start at the beginning and walk through the program line by
|
||||||
line. Often it is not necessary that the other person is a
|
line. Often, it is not necessary that the other person is a
|
||||||
programmer or exactly understands what is going on. Often, it is the
|
programmer or exactly understands what is going on. Rather, it is the
|
||||||
own reflection on the problem and the chosen approach that helps
|
own reflection on the problem and the chosen approach that helps
|
||||||
finding the bug. (This strategy is also known as \codeterm{Rubber
|
finding the bug (This strategy is also known as \codeterm{Rubber
|
||||||
duck debugging}.
|
duck debugging}).
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
|
|
||||||
|
|
||||||
@ -492,15 +492,16 @@ The toolbar of the editor offers now a new set of tools for debugging:
|
|||||||
\item \textbf{Step} --- Execute the next command and stop.
|
\item \textbf{Step} --- Execute the next command and stop.
|
||||||
\item \textbf{Step in} --- If the next command is a
|
\item \textbf{Step in} --- If the next command is a
|
||||||
function call, step into it and stop at the first command.
|
function call, step into it and stop at the first command.
|
||||||
\item \textbf{Step out} --- If the next command is a function call,
|
\item \textbf{Step out} --- Suppose you entered a function with
|
||||||
proceed until the called function returns, then stop.
|
\emph{step in}. \emph{Step out} will continue with the execution and
|
||||||
|
stop once you are back in the calling function.
|
||||||
\item \textbf{Run to cursor} --- Execute all statements up to the
|
\item \textbf{Run to cursor} --- Execute all statements up to the
|
||||||
current cursor position.
|
current cursor position.
|
||||||
\item \textbf{Quit debugging} --- Immediately stop the debugging
|
\item \textbf{Quit debugging} --- Immediately stop the debugging
|
||||||
session and stop the further code execution.
|
session and stop further code execution.
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
|
|
||||||
The debugger offers some more (advanced) features but the
|
The debugger offers some more (advanced) features but the
|
||||||
functionality offered by the basic tools is often enough to debug a program.
|
functionality offered by the basic tools is often enough to debug a
|
||||||
|
program.
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
\chapter{Design patterns}
|
\chapter{Design pattern}
|
||||||
|
|
||||||
Many code fragments are variations of some basic patterns. These
|
Many code fragments are variations of some basic pattern. These
|
||||||
patterns are used in many different variations in many different
|
pattern are used in many different variations in many different
|
||||||
contexts. In this chapter we summarize a few of these \enterm[design
|
contexts. In this chapter we summarize a few of these \enterm[design
|
||||||
pattern]{design patterns}.
|
pattern]{design pattern}.
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
\section{Looping over vector elements}
|
\section{Looping over vector elements}
|
||||||
|
Reference in New Issue
Block a user