Jump to content

New Tracy Exceptions Viewer panel and Validator panel updates.


adrian
 Share

Recommended Posts

Hi everyone,

Got a new feature for you today (at the request of @eydun). 

First some background - some of you might not even be aware that Tracy saves .html files of it's bluescreen stacktrace when an exception is thrown. The cool part about this is that these happen when Tracy is in production mode on a live site, so if you get a notification (via email or slack) that an exception was thrown, you can navigate to /site/assets/logs/tracy and load these html files in your browser and inspect the code (including values passed to functions etc). This can make debugging much easier because you don't need to try to replicate the error again.

The new feature today makes viewing these much easier with a dedicated panel listing all available exception files. Simply click on one to have it display as it would if the exception was thrown while you were interacting with the site.

The icon turns red when there are new exception files since your last visit and it shows which ones are new.

The clear button will remove the bluescreen so you can return to your site without needing to reload the page.

image.thumb.png.248c2c9fa76d75d9912750a152c376a7.png

 

The Validator panel also had a revamp. It now uses https://validator.w3.org/nu/ because https://html5.validator.nu/ was no longer working and I have updated the CSS to support their new output DOM.

For those of you who don't know, the key value to the Validator panel is for local dev sites where you don't have a publicly accessible URL to use - this sends the HTML of the page directly.

image.thumb.png.1a642b4a252414a17763583de7fe7812.png

 

Also included are some PHP 8.2 deprecation fixes.

 

  • Like 9
  • Thanks 1
Link to comment
Share on other sites

Just added a couple of key fixes to the Exceptions panel - please update your copies and do a hard reload.

Also, please note that this panel is now loaded by default (frontend and backend) on new Tracy installs and I would recommend making this change on all existing installs as well.

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...