in reply to The Evolution of the Lowly Debug Statement
Not necessarily. One of the most common error messages is about not being able to open a file. If I can't open a file, I don't care at all where in the code the error occurs, only two things are relevant: which files was tried to be opened, and why did it fail.
Furthermore, I think that one shouldn't bother the user with line numbers where problems occur. Line numbers are fine for debug messages, as debug messages are (mostly) for the developer. Error messages are for the user, and (s)he can give diddle twit where the error occurs. Take for instance your cell phone. If you dial a number, and you cannot connect, you expect the phone to show you the number it tried to connect to, and the reason the connection failed. You don't really care on which line of the code this error message is on.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: The Evolution of the Lowly Debug Statement
by Jenda (Abbot) on Nov 10, 2006 at 18:38 UTC |