php 编辑器 代码追踪,Laravel Whoops Editor可以帮助您从异常堆栈跟踪中打开代码编辑器...

Laravel Whoops Editor

aa07daae96deec15526c9a228eeae61c.png

68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6379626572636f672f6c61726176656c2d77686f6f70732d656469746f722f6d61737465722e7376673f7374796c653d666c61742d73717561726568747470733a2f2f7374796c6563692e696f2f7265706f732f3131343331373433342f736869656c6468747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6379626572636f672f6c61726176656c2d77686f6f70732d656469746f722e7376673f7374796c653d666c61742d73717561726568747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6379626572636f672f6c61726176656c2d77686f6f70732d656469746f722e7376673f7374796c653d666c61742d737175617265

Introduction

Laravel Whoops Editor helps to open your code editor from exception stack trace. Go to code editor in a blink of an eye!

This feature was introduced in Laravel 5.5.25, but unfortunately has issues on Linux machines. Laravel Whoops Editor fixes PHPStorm, IDEA and SublimeText Linux support.

Additionally allows you to open editor when using Homestead.

For Atom support you can use Mike Bronner's laravel-whoops-atom package or publish config and specify launch path in editors config section.

Contents

Features

PHPStorm cross-platform support.

IDEA cross-platform support.

Sublime cross-platform support.

Allow opening code editor when using Homestead.

Covered with unit tests.

Requirements

PHP >= 7.0.0

Laravel >= 5.5.25

Installation

First, pull in the package through Composer:

$ composer require cybercog/laravel-whoops-editor --dev

Configuration

Package designed to work right out of the box, but you could publish configuration file to tweak settings:

$ php artisan vendor:publish --provider="Cog\Laravel\WhoopsEditor\Providers\WhoopsEditorServiceProvider" --tag="config"

Usage

Specify your editor by adding APP_EDITOR=phpstorm in .env file.

Optionally you can specify editor by adding editor key to the ./config/app.php configuration file.

'editor' => 'phpstorm',

This package provides extended Linux support for editors: phpstorm, idea, sublime.

Complete list of supported editors could be found in Whoops documentation.

Protocol Handlers

If your OS trying to open file in web browser instead of code editor you should install Protocol Handler.

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Testing

Run the tests with:

$ vendor/bin/phpunit

Security

If you discover any security related issues, please email open@cybercog.su instead of using the issue tracker.

Contributors

Alternatives

License

Laravel Whoops Editor package is open-sourced software licensed under the MIT License by Anton Komarev.

Error In Document image licensed under Creative Commons 3.0 by Kid A.

About CyberCog

CyberCog is a Social Unity of enthusiasts. Research best solutions in product & software development is our passion.

e359e8c9efab6839948e64fd7dcebe34.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值