ampedweb/var-dumper-with-context
最新稳定版本:v1.1.0
Composer 安装命令:
composer require ampedweb/var-dumper-with-context
包简介
Show the line number where the dump method was called
README 文档
README
Using this will show the file and line number which called the dump function. Very handy if you've forgotten where you put that pesky call, especially deep inside the vendor directory.
Cloned and updated from:
https://github.com/morrislaptop/var-dumper-with-context
Original package seems to be abandoned, so I decided to claim and maintain it. Credit to the original author/package is due though!
Installation
composer require symfony/var-dumper --dev && composer require morrislaptop/var-dumper-with-context --dev
Usage
That's it! Simply call dump() as you normally would and the file and line number will appear.
Env Variables
If you would like to generate links to the file and line for IDE you can set the following environment variables:
VAR_DUMPER_CONTEXT_REMOTE_BASE_PATH=/usr/share/deploys/your-project/current VAR_DUMPER_CONTEXT_LOCAL_BASE_PATH=/Users/your.user/dev/your-project VAR_DUMPER_CONTEXT_EDITOR=vscode # vscode, phpstorm, sublime, textmate, emacs, macvim, idea, atom, nova, netbeans
Laravel Note
Laravel 5.7 ships with beyondcode/laravel-dump-server which will disable this extension. To enable this extension again, simply add the below to your application's composer.json and run php artisan package:discover again.
"extra": {
"laravel": {
"dont-discover": [
"beyondcode/laravel-dump-server"
]
}
},
Resources
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-05