Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Vehbi Oztomurcuk
Vehbi Oztomurcuk
4,283 Points

Basic Error Handling in PHP track

Code editors such as visual studio code, atom ...etc. are already displays all the errors. what is the difference about this whole process when we already have a detectors.

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,858 Points

Hi Vehbi,

IDEs and most Text Editors will highlight most spelling errors and syntax errors, but none can nor will (for the most part) show you logic errors, misused variables, variables out-of-scope, mislabeled variables, functional errors, programmatic errors, or any other errors that are directly related to the function, scope and use of the app.

From where you are linking this post from, Error Handling is essential especially when taking in user input. You don't receive this input until your app is live, so how could your Text Editor highlight an error for you if it has no idea of the data being used?

A complete explanation does go a bit beyond the scope of the Community, but it should become more clear and evident as you progress through the course.

Hope that helps a bit! :) :dizzy:

Vehbi Oztomurcuk
Vehbi Oztomurcuk
4,283 Points

i was sure that it has a logical explanation but i still wanted to hear it. thanks a lot.