久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何使用 xdebug 調試 PHP CLI 腳本?

How can I debug a PHP CLI script with xdebug?(如何使用 xdebug 調試 PHP CLI 腳本?)
本文介紹了如何使用 xdebug 調試 PHP CLI 腳本?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我還沒有完全弄清楚這一點.我找到的每篇文檔都涵蓋了如何使用 xdebug 調試在 Apache 中運行的腳本.我需要調試一個 php CLI 腳本.

那么,例如,我如何傳遞 XDEBUG_SESSION_START 變量以啟動 xdebug?

我特別想調試 CakePHP shell.因此,如果有人對此有任何其他見解,我將不勝感激.

謝謝.

解決方案


(來源:
(來源:
(來源:
(來源:pascal-martin.fr)


希望這會有所幫助:-)

否則,您遇到什么具體問題?

I haven't quite figured this out. EVERY piece of documentation I've found covers how to use xdebug to debug scripts running in Apache. I need to debug a php CLI script.

So, for instance, how do I pass the XDEBUG_SESSION_START variable in to get xdebug to kick on?

I'm specifically trying to debug a CakePHP shell. So if anyone has any additional insight into that I'd be very appreciative.

Thanks.

解決方案

There is a couple of notes about that in Xdebug's manual, like, for instance (quoting) :

export XDEBUG_CONFIG="idekey=session_name"
php myscript.php

If you are using Eclipse PDT to develop and debug your PHP scripts, there is not much difference between Apache or CLI : the configuration lloks quite the same, you just don't have to configure a web server, nor indicate an URL ; instead, you have to indicate the path to the PHP executable.

About the XDEBUG_SESSION_START variable : well, you launch the whole script in "debug-mode", so you don't have any notion of "debugging-session", I'd say.


For instance, here's what Window > Preference > PHP > PHP executables looks like for me right now, and, on the right, what I get when clicking on the Edit button of the first one :


(source: pascal-martin.fr)
   
(source: pascal-martin.fr)

And the debug configurations window :


(source: pascal-martin.fr)

And launching the debugging: it just works :


(source: pascal-martin.fr)


Hope this helps :-)

Else, what specific problem do you encounter ?

這篇關于如何使用 xdebug 調試 PHP CLI 腳本?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Cannot use #39;Object as class name as it is reserved Cake 2.2.x(不能使用 Object 作為類名,因為它是保留的 Cake 2.2.x)
Session is lost after an OAuth redirect(OAuth 重定向后會話丟失)
Pagination Sort in Cakephp 3.x(Cakephp 3.x 中的分頁排序)
CakePHP Shared core for multiple apps(CakePHP 多個應用程序的共享核心)
Login [ Auth-gt;identify() ] always false on CakePHP 3(在 CakePHP 3 上登錄 [ Auth-identify() ] 始終為 false)
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 87 bytes)(致命錯誤:允許的內存大小為 134217728 字節已用盡(嘗試分配 87 字節))
主站蜘蛛池模板: 国产精品无码永久免费888 | 国产成人免费视频网站视频社区 | 免费观看一级特黄欧美大片 | 国产欧美日韩综合精品一区二区 | 91精品久久久久久久久中文字幕 | 久久久久久999 | 91九色视频 | 蜜桃视频在线观看免费视频网站www | 国产成年人视频 | 日韩在线一区二区 | 99热国产免费 | 欧美日韩综合一区 | 天天天操操操 | 国产小视频在线 | 精品国产乱码久久久久久图片 | 伊人免费在线观看 | 日本黄视频在线观看 | 51ⅴ精品国产91久久久久久 | 久一久| 亚洲精品乱码久久久久久9色 | 综合久久av | 综合久久综合久久 | 天堂一区二区三区 | 国产欧美日韩精品一区 | 久久国产精品一区二区三区 | 99视频在线免费观看 | 欧美精品日韩 | 高清久久久 | 国内自拍第一页 | 免费黄色日本 | 精品国产一区二区三区观看不卡 | 免费看黄色小视频 | 91久久综合亚洲鲁鲁五月天 | 91精品久久久久 | 国产高清一区二区 | 人人爱干 | 中文字幕在线观看一区二区 | 精品久久久久一区二区国产 | 国产精品视频一区二区三区四蜜臂 | 久久九九99 | 一区二区三区免费观看 |