vs.php在预先安装的Apache/PHP上调试.

很久之前就下载过vs.php来开发程序,那时候的vs.php并不是太理想,存在很多小bug.今天为了写一个简单的教程,再次使用php语言,为了方便与自己的.net开发环境相结合,再次选择了 vs.php(虽然只有30天的试用期,但对我来说已经足够了,写一个教程最多10天就完成了).

调试时由于内置的Apache在我的Vista下还是存在一些问题,显示内存地址无法读取.没有办法,去官方网站找了一些资料.终于知道怎么样使用外置的Apache来调试PHP程序了.详细方法如下:

1,设置vs.php中的项目属性.

发件人 ExtJs_Blog

2.配置你预安装的Apache中的php.ini文件.
把以下内容加入到你的php.ini文件中.

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;

extension=php_dbg.dll

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[DBG]
debugger.enabled = true
debugger.profiler_enabled = true
debugger.JIT_host = 127.0.0.1
debugger.JIT_port = 7869

3,最后,把 “C\Program Files\Jcx.Software\VS.Php\2008\2.6\Php 5\ext\php_dbg.dll” 复制到你的php.ini中设置的 extension_dir 目录下面.

完成以上3步后,你就可以开始你的vs.php调试之旅了!

This entry was posted in PHP, 开发工具 and tagged , . Bookmark the permalink.

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word