web blazonry web development scripts and tutorials
 
Web blazonry.com
   Home       PHP       Name Generators       Perl       CSS       Javascript       Java       devTips       Resources   

devTips Home

Free Linux Books
  Programming for Linux (new)
  Sys & Network Admin (new)
  On the Desktop (new)

Tech Tips for Picking a Web Host

Database Tutorial (PHP & MySQL)

How to Instal Apache + PHP + MySQL

PHP vs. ASP vs. JSP

Introduction to Debugging

MySQL JDBC Drivers

Overview of Client Side

Margins Flush with Edges of Browser

Specifying Alternate Document to Print

Web App Security
  Who Submit That?
  Cookie Security
  Passwords
  Secure Web Development





Debugging Tutorial, Part 2

The summary of this lesson on basic debugging is to check your error logs.

This is part 2 of my tutorial on basic debugging techniques. (See also debugging, part 1)

Error logs can tell you alot. We often forget to check them, especially when we are frustrated. Error logs can help you figure out why your program is not working.

Sometimes the problem is something really amazingly stupid such as a typo in a path. It happens to the most experienced of programmers.

For development, you use your own computer, referred to as "localhost," rather than a live web server. On localhost, Apache error logs are simple to check.

The location of the file that contains the error messages might vary from the following instructions depending on your installation and version of Apache. For many installations on Windows computers, look for it at

C:\Program Files\Apache Group\Apache\logs\error.log

Add a shortcut to the file to your desktop so you can check the file easily.

The most common type of email I receive starts out "I can't get my program to run, please help." Remember to check your error logs for clues. And please read my Introduction to Debugging. It's not fun banging your head against a wall when you can't get a program to run. Use these tips and hopefully you will save yourself some time and headaches.


 

Newest Pages
Free Linux Admin Books
Free Linux Books for Programmers
Free Books for Linux on the Desktop
Free PHP Books
Free JavaScript Books
Free Java Books - Advanced
Free Java Books - Basic
Free Perl Books
Free Python Books
Quote of the Day (PHP)
Debugging Part 2
How to Test Google Ads
Source Code for Test Google Ads (PHP)
Most Popular Pages
U.S. Name Generator
Wu Name Generator
Baby Name Generator
Upload and Resize an Image (PHP)
Popup Windows (JavaScript)
How To Install Apache + PHP + MySQL
Simple Web Calendar (PHP)

Least Popular Pages
Image Load-Order (Javascript)
dHTML: Scrolling Layers
iNews Aplet (Java)
ProcLog Search Your Logs (Perl)
 
 

  © 1997-2007. astonishinc.com   All Rights Reserved.