debugging now that you know enough to write more complicated programsyou may start finding not-so-simple bugs in them this covers some tools and techniques for finding the root cause of bugs in your program to help you fix bugs faster and with less effort to paraphrase an old joke among programmerswriting code accounts for percent of programming debugging code accounts for the other percent your computer will do only what you tell it to doit won' read your mind and do what you intended it to do even professional programmers create bugs all the timeso don' feel discouraged if your program has problem fortunatelythere are few tools and techniques to identify what exactly your code is doing and where it' going wrong firstyou will look at logging and assertionstwo features that can help you detect bugs early in generalthe earlier you catch bugsthe easier they will be to fix