01.09.2014 Views

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CH02.fm Page 31 Monday, October 7, 2002 8:09 PM<br />

Emacs 31<br />

<strong>The</strong> main.c buffer is still the active buffer, but it is linked to the *compilation* buffer. As<br />

indicated by Figure 2-6, typing ^X-` the first error in the bottom buffer is highlighted <strong>and</strong> the<br />

pointer in the top buffer is positioned in the line of code that caused the error. Repeating that<br />

comm<strong>and</strong> moves the pointer forward in the code to the next error.<br />

Figure 2-6 <strong>Using</strong> the built-in functions to debug code.<br />

While navigating through the *compilation* buffer, typing ^C^C will move the code in<br />

the window to the line referenced by the error message. Table 2-11 lists the comm<strong>and</strong>s used to<br />

aid in debugging compiled code.<br />

Table 2-11 Compiling with Emacs<br />

Action<br />

M-X compile<br />

^X-`<br />

^C^C<br />

Comm<strong>and</strong><br />

Compile a file or an entire project<br />

Find the next error<br />

Examine source code that created the error

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!