Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tracy Debugger support for Laravel

License

NotificationsYou must be signed in to change notification settings

whipsterCZ/laravel-tracy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This service provider adds the powerfulTracy debug tool to the Laravel 5 framework.

Nette Tracy screenshot

Why is Tracy better than the laravel (Symfony) build-in debugger?

  • Exception stack trace contains values of all method arguments.
  • Request & Response & Server environment information is displayed on the error page.
  • The whole error page with full stack trace can be easily stored to some directory as HTML file (useful on production mode).
  • Webmaster can be notified by email about errors that occured on the site.

Seefull Tracy docs andsample error page.

Tracy is a part of theNette Framework.

Requirements

  • Tracy =2.3.7
  • Laravel >5.1 = Choose repository tag matching your laravel version

Installation

  1. AddTracy to yourcomposer.json
"require": {"tracy/tracy":"2.3.7"}
  1. Add source code to your existing App - directories shouldmatch service Namespace
app/Services/Tracy/
  1. register service provider in yourconfig/app.php
'providers' => [...,App\Services\Tracy\ServiceProvider::class,]

Configuration

This is it! No configuration needed.If you need configure Tracy or Laravel Exception handler @seeTracy/ServiceProvider.php

Bugsnag integration

Tracy service automatically utilizeBugsnag error handling ifbugsnag-laravel package is present

Logging

Service recognize application environment usingenv('APP_DEBUG')

IfAPP_DEBUG is false orRequest()->ajax() is true service log your Exceptions to directory

/storage/logs/

TroubleShooting

If you are sending JSON with TracyDebugBar rendered, you have probably created JSON Response wrong way.

Route::get('json',function(){$user = \App\Models\User::first();return$user;//Correct ->toJson() will be invoked and JSON Response will be created$json =$user->toJson();return$json;//Wrong - it creates Text/Plain Responsereturn \Response::json($json);//This is OK, but note that your JSON will be ESCAPED});

Use Tracy version 2.3.7 some newer versions are incompatible..

About

Tracy Debugger support for Laravel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp