用dump為什么總會在前面出現/path/debug.php:193
比如使用dump($request->url());
就會出現:E:\WAMP\wamp64\www\Blog\thinkphp\library\think\Debug.php:193:string '/Blog/public/' (length=13)
使用dump($request->baseurl());
就會出現:E:\WAMP\wamp64\www\Blog\thinkphp\library\think\Debug.php:193:string '/Blog/public/' (length=13)
2018-05-20
我也遇到這個問題,害得我不知道怎么辦,現在已經解決,原來是我換了一個wamp環境就出現這個問題了。解決方案,在php.ini中的xdebug中加一行代碼:xdebug.overload_var_dump=1
http://www.xianlaiwan.cn/qadetail/181472
2018-03-16
代碼寫入 use think\Request;
函數里傳入Request $request
應該就沒問題了,我是沒問題 。。。