Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[WIP][DX] Better exception page #12363

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

Closed
wants to merge 4 commits into from

Conversation

hason
Copy link
Contributor

@hason hason commented Oct 30, 2014

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass?
Fixed tickets
License MIT
Doc PR
  • add twig files into stack trace
  • add syntax highlighters for PHP and Twig with symfony.com's color scheme
  • use VarDumper for function arguments (maybe in another PR)
  • add tests

Before:
before

After:
after

@weaverryan
Copy link
Member

Woh, the before and after is amazing! Great idea - especially the Twig inclusion.

@@ -1,6 +1,12 @@
CHANGELOG
=========

2.6.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's going to be in 2.7. 2.6 is closed for new features.

@peterrehm
Copy link
Contributor

@hason It looks awesome. In the after screenshot there is a line break in the PHP code line 4701. I would prefer if you make the area to scroll instead of the line break.

{
protected $regexString = '"[^"\\\\]*?(?:\\\\.[^"\\\\]*?)*?"|\'[^\'\\\\]*?(?:\\\\.[^\'\\\\]*?)*?\'';
protected $regexTags;
protected $regex;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be private

@@ -17,7 +17,7 @@
<a id="traces-link-{{ position }}"></a>
<ol class="traces list-exception" id="traces-{{ position }}" style="display: {{ 0 == count ? 'block' : 'none' }}">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use the same twig cycle technique you used below for inline style this also? and thus make it a class?

@weaverryan
Copy link
Member

@hason do you have some time to update this PR for the suggested changes? I'd still like to see this, e.g. for 2.8.

Thanks!

@fabpot
Copy link
Member

fabpot commented Sep 14, 2015

@hason Do you time to finish this one? Or perhaps @javiereguiluz can take over?

@hason hason mentioned this pull request Sep 14, 2015
4 tasks
@hason
Copy link
Contributor Author

hason commented Sep 14, 2015

Closing in favour of #15792.

@hason hason closed this Sep 14, 2015
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.

5 participants