Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
How to find Error in the application
Posted
Comments
CPallini 16-Dec-14 6:50am    
Testing.
Please note that's really a poor question.
Senthoor Muthu 22-Dec-14 2:54am    
i need throw the error in the notpad or any others
TheRealSteveJudge 16-Dec-14 6:56am    
Explain the world to me.
Give me three examples.

1 solution

Well...first check for compilation errors: these are usually syntax or spelling problems and can be solved pretty quickly, but which will prevent you from running your code.

Then, check for compiler warnings: these are usually something silly that is likely to bite you when you run the application, but won't stop you doing so. However, you should look very closely at them, and try to get rid of them - I run with "treat warnings as errors" simply because the compiler does know what it is talking about, and a warning generally means I forgot something and it's likely to be important.

Then when you run your application there are two types of problems you might get:

Exceptions: the application finds a critical error and cannot continue properly. You need to look at the exception in some detail using the debugger and work out exactly what caused it - and that may be some distance from the point at which the error became obvious to the application.

Logic problems: The application does something you didn't intend it to, or doesn't do something you did mean it to.

Both of these are pretty much only fixable by careful use of the debugger to work out exactly what is going on in your code: we can't run your code, so we can't tell you what to do. Use the debugger, and look at how your code runs, and what your variables are doing.
 
Share this answer
 
v2
Comments
Dave Kreskowiak 16-Dec-14 12:06pm    
Wow. I would have just said "by debugging it."

A 5 for you.
Senthoor Muthu 22-Dec-14 2:52am    
Thanks for u r Answers
OriginalGriff 22-Dec-14 3:02am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900