Git Product home page Git Product logo

laravel-debugbar-vscode's Introduction

laravel-debugbar-vscode

Plugin laravel-debugbar that provide button to open vscode

This package code is based on https://github.com/barryvdh/laravel-debugbar

How to use

Move mouse pointer to text that contains file path, then the button will appear. Click to open the path in vscode :D

Screenshot 1 Screenshot 2

Installation

Require this package with composer. It is recommended to only require the package for development.

composer require erlangparasu/laravel-debugbar-vscode:"3.x-dev" --dev

Laravel 5.5+:

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

ErlangParasu\DebugbarVscode\ServiceProvider::class,

Lumen:

For Lumen, register a different Provider in bootstrap/app.php:

if (env('APP_DEBUG')) {
    $app->register(ErlangParasu\DebugbarVscode\LumenServiceProvider::class);
}

laravel-debugbar-vscode's People

Contributors

erlangparasu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

laravel-debugbar-vscode's Issues

laravel 6 + debugbar 3.3.2

Hi,

Don't know if this is a version issue but with laravel 6 + debugbar 3.3.2 i got the following links:
vscode://file//Users/myuser/projects/laravel_60(resources/views/index.blade.php
! Note the "(" after the basepath instead of a "/"
vscode://file//Users/myuser/projects/laravel_60routes/web-vue.php:219
! Note the missin "/" after the basepath

I had to make the following changes to vscode_debugbar_plugin.blade.php to get it working properly:

            function getBasePath() {
                return "{{ str_replace('\\', '/', base_path()) . '/' }}"; # added . '/'
            }

and

                if (isBlade(str)) {
                    var iRes = str.indexOf('resources');
                    if (iRes != -1) {
                        str = str.substring(iRes ); // was -1**
                        var iViews = str.indexOf('views');

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.