File: node5.html

package info (click to toggle)
gnustep-tutorial 1.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 772 kB
  • ctags: 194
  • sloc: makefile: 46; perl: 6
file content (71 lines) | stat: -rw-r--r-- 2,084 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 99.2beta8 (1.43)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Debugging an Application</TITLE>
<META NAME="description" CONTENT="Debugging an Application">
<META NAME="keywords" CONTENT="WritingMakefiles">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="WritingMakefiles.css">

<LINK REL="next" HREF="node6.html">
<LINK REL="previous" HREF="node4.html">
<LINK REL="up" HREF="WritingMakefiles.html">
<LINK REL="next" HREF="node6.html">
</HEAD>

<BODY >
<B> Next:</B> <A NAME="tex2html64"
  HREF="node6.html">Preamble and Postamble</A>
<B>Up:</B> <A NAME="tex2html62"
  HREF="WritingMakefiles.html">Writing GNUstep Makefiles</A>
<B> Previous:</B> <A NAME="tex2html56"
  HREF="node4.html">A first App</A>
<BR> <P>

<!--End of Navigation Panel-->

<H1><A NAME="SECTION00050000000000000000">
Debugging an Application</A>
</H1>
Debugging an application is quite simple.  You compile it with 
debugging enabled, as in
<PRE>
make debug=yes
</PRE>

<P>
The application directory is then created with a different name:
<TT>debug</TT> is appended instead of <TT>app</TT> (again, this allows
you to keep both the debug and not-debug versions at the same time).
In the example, the application directory would be called
<TT>PanelTest.debug</TT>.  

<P>
To debug the application, use <TT>debugapp</TT> instead of
<TT>openapp</TT>:
<PRE>
debugapp PanelTest.debug
</PRE>
This will run <TT>gdb</TT> (the GNU debugger) on the executable
setting everything ready for debugging.

<P>
<BR><HR>
<ADDRESS>
Nicola Pero
2000-10-12
</ADDRESS>
</BODY>
</HTML>