Update documentation suggestions for debugging the backend.
authorBruce Momjian
Fri, 2 Dec 2011 22:08:33 +0000 (17:08 -0500)
committerBruce Momjian
Fri, 2 Dec 2011 22:09:56 +0000 (17:09 -0500)
Tom Lane, with minor adjustments by me.

doc/src/sgml/installation.sgml

index 113596138eff9ba892bea5ae557148cd7be38196..75fb78389495a5c7baad543a7e79c21584542d7b 100644 (file)
@@ -1415,10 +1415,23 @@ su - postgres
 
     
      
-      Server developers should consider using the configure options 
-      
-      ability to detect and debug server errors.  Your debugger might
-      also require specific compiler flags to produce useful output.
+      When developing code inside the server, it is recommended to
+      use the configure options 
+      turns on many run-time error checks) and 
+      (which improves the usefulness of debugging tools).
+     
+
+     
+      If using GCC, it is best to build with an optimization level of
+      at least 
+      (
+      as the use of uninitialized variables).  However, non-zero
+      optimization levels can complicate debugging because stepping
+      through compiled code will usually not match up one-to-one with
+      source code lines.  If you get confused while trying to debug
+      optimized code, recompile the specific files of interest with
+      
+      to make: gmake PROFILE=-O0 file.o.