PhpDebugHelper

WBOY
发布: 2016-08-08 09:30:06
原创
1112 人浏览过


PhpDebugHelper:
--------------
  ## 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教程有兴趣的朋友有所帮助。

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!