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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Darrell Conklin](https://secure.gravatar.com/avatar/78ca4a41bd13b2fdbb9c15d4ae19cfb8?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Darrell Conklin
22,098 Points500 error instead of debug
Am getting 500 errors instead of debugging for this workspace.
2 Answers
![Brandyn Lordi](https://secure.gravatar.com/avatar/7d67ff0f332633349b902885f2fc0501?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Brandyn Lordi
17,778 PointsYou have to enable php error reporting.
An easy debug solution is to use view->show console
Then you can run your file and it will output any errors it runs into. e.g, :
treehouse:~/workspace$ php index.php
Edit: To add to my existing comment to help others in the future(got confused, had to start this series over.. no shame!), you can also display errors in the browser with the following snippet:
ini_set('display_errors', 1);
error_reporting(E_ALL);
I put it in my config.php, but it can be set on a per-page basis.
![Spenser Hale](https://secure.gravatar.com/avatar/6a8dc7c1d7dfb67eae6c291654abf3b8?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Spenser Hale
20,915 PointsHello Darrell and Brandyn
Darrell, I hope Brandyn helped you find the error you were experiencing. Brandyn, thank you helping assist Darrel and other students.
It would be useful to the community if Darrel does not need any more assistance on this issue, to have an answer selected as best answer so this question is not still listed as unresolved.
Darrell Conklin
22,098 PointsDarrell Conklin
22,098 PointsThanks Brandyn
worked great I can see errors in the browser :)
If you like you can post it in the answers section and I will pick it as the best answer. Sorry for the late reply.