vs.php 调试 php

WBOY
Release: 2016-06-23 14:36:59
Original
1400 people have browsed it

看完本文能运行 不能调试,若您能不吝赐教 非常感谢 

 

下载

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

 

 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template