vs.php 調試 php

來源:互聯網
上載者:User
看完本文能運行 不能調試,若您能不吝賜教 非常感謝

下載

Jcx.Software.VS.PHP.for.Visual.Studio.2008.v2.6.3.5601.rar 安裝檔案

Jcx.Software.VS.PHP.for.Visual.Studio.2008.v2.6.3.5601.KeyMaker.and.Patch-DVT.rar Key註冊碼

破解

產生KEY的時候 務必PATCH掉原來的 vsphp_svc.exe (D:\Program Files\Jcx.Software\VS.Php\2008\2.6\vsphp_svc.exe )

安裝後

開啟Vs2008 ->建立項目->展開“其他項目”結點

項目名稱 :PHP PROJECT1

預設檔案存放在 VS的PROJECTS中

由於用自己前面配置好的 PHP和APACHE

當前APACHE的啟動路徑 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\

http://localhost:8080/

專案檔移動到 D:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ 目錄下

PHP檔案index.php

/* TODO: Add code here */

phpinfo();

?>

修改項目配置

屬性 -> 選中 DEBUG

修改 start uml : http://localhost:8080/ 最後沒有/

debug mode : External mode 用已經配好的APACHE ; VS.PHP也有內建的APACHE

debug engine : Xdebug 調試和非調試

//

由於沒有配置 php_xdebug.dll

沒有配置成功

大致意思是下載DLL 然後改名 存放在EXT檔案中 然後再PHP.INI檔案中修改 注意屏蔽ZEND加速器的配置

[Zend]
;zend_extension_manager.optimizer_ts="d:\Program Files\Zend\ZendOptimizer-3.3.0\lib\Optimizer-3.3.0"
;zend_extension_ts="d:\Program Files\Zend\ZendOptimizer-3.3.0\lib\ZendExtensionManager.dll"
zend_extension_ts="D:\Program Files\Php\ext\php_xdebug.dll"

[XDebug]
xdebug.idekey = vsphp
xdebug.remote_enable = 1
xdebug.remote_port = 7870
xdebug.remote_autostart = 1


附phpinfo下Debug項目
Debug Build no

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.