首页 / PHP / PhpDebugHelper
PhpDebugHelper
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了PhpDebugHelper,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2144字,纯文字阅读大概需要4分钟。
内容图文
![PhpDebugHelper](/upload/InfoBanner/zyjiaocheng/154/6614ec3c126f42958b94ccc25059313c.jpg)
--------------
## PhpDebugHelper
## Why?
This plugin help you when you are debugging your script. It frees you from writing so much function call such as `var_dump($var)` or `print_r($var)`. And you also can quickly clear all the debugging function calls.
## Where?
https://github.com/yangxikun/sublime-phpdebughelper
## How?
+ Place cursor to a variable or index or property. If there are not variable be selected, it will still show the debugging function call.
+ Press **F1** or **F2**
+ Press **shift+f3** to navigate between debugging function calls
+ Press **F3** to clear
## Custom?
Save your our setting in `Preferences > Package Settings > PHP Debug Helper > Key Bindings-User` refer to the following:
~~~
[
{ "keys": ["f1"], "command": "php_debug_helper", "args": {"cmd": "prepend", "function": "var_dump"} },
{ "keys": ["f2"], "command": "php_debug_helper", "args": {"cmd": "append", "function": "var_dump"} },
{ "keys": ["f3"], "command": "php_debug_helper", "args": {"cmd": "clear", "function": ["var_dump"]} },
{ "keys": ["shift+f3"], "command": "php_debug_helper", "args": {"cmd": "show", "function": ["var_dump"]} }
]
~~~
You can change the function name that you use to debug and keymap. And you also can add more function here, for example(add `print_r`):
~~~
[
{ "keys": ["f1"], "command": "php_debug_helper", "args": {"cmd": "prepend", "function": "var_dump"} },
{ "keys": ["f2"], "command": "php_debug_helper", "args": {"cmd": "append", "function": "var_dump"} },
{ "keys": ["f4"], "command": "php_debug_helper", "args": {"cmd": "append", "function": "print_r"} },
{ "keys": ["f3"], "command": "php_debug_helper", "args": {"cmd": "clear", "function": ["var_dump", "print_r"]} },
{ "keys": ["shift+f3"], "command": "php_debug_helper", "args": {"cmd": "show", "function": ["var_dump", "print_r"]} }
]
~~~
## Improve
If you have any suggestion for this plugin, please make a issue.
## OK, Let's debug
Package Control Messages
========================
以上就介绍了PhpDebugHelper,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
内容总结
以上是互联网集市为您收集整理的PhpDebugHelper全部内容,希望文章能够帮你解决PhpDebugHelper所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。