View Single Post
Old Aug 19th, 2005, 11:50 AM   #33
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Again, you're not saying everything. You can look at the logic and presume Executed is true because you've entered a valid ID and updated the record, set things appropriately, and should exit. What you're not confirming (in your posts) is that you actually followed those presumptive paths. Put some output statements in each alternative path ane SEE where you actually go. If it isn't where you expect, output some values so you can SEE why it took the path. Information is actually key to debugging. It's available in your variables at certain points and more is available in status returned by the functions you use.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote