Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug mode that will show a nice formatted page when an expcetion is raised #6

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

joksnet
Copy link
Contributor

@joksnet joksnet commented Oct 17, 2014

This PR adds a new debug parameter to the application that will be injected into ExceptionHandler. If in debug mode, exception handlers will not be called, but instead a nice formatted page will be shown:

Debugging Page

Let me know what you think.

Something like this should be fine:

```php
$app = new \Cicada\Application(array('debug' => true));
```
This will be injected into the exception handler so, when in debug mode
and an exception is raised, it can be catched and display a nice page
with more information.
Exception are catched and if in debug mode, will not call the
subscripted handlers but generate a nice page showing the exception
instead.
@coveralls
Copy link

Coverage Status

Coverage decreased (-30.25%) when pulling d602b4b on joksnet:debug into 6b4ed2b on cicada:develop.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.41%) when pulling 0e6f143 on joksnet:debug into 6b4ed2b on cicada:develop.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.41%) when pulling 40cdc35 on joksnet:debug into 6b4ed2b on cicada:develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants