靈魂-放水

          為學日益,為道日損。

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            296 Posts :: 10 Stories :: 274 Comments :: 0 Trackbacks
          在XAMPP管理頁面,點擊phpinfo查看php版本為5.2.9。

          步驟:

          1、復制d:\Program Files\NuSphere\PhpED\debugger\server\Windows\x86\dbg-php-5.2.dll到
          D:\Project\xampp\php\ext\dbg-php-5.2.dll。

          2、根據官方文檔,打開D:\Project\xampp\php\php.ini,加入:

          [phped debugger]
          zend_extension_ts="D:\Project\xampp\php\ext\dbg-php-5.2.dll"
          debugger.enabled=on
          debugger.profiler_enabled=on
          debugger.hosts_allow=127.0.0.1
          debugger.hosts_deny=ALL
          debugger.ports=7869, 10000/16

          Zend debugger和dbg-php debugger不能同時用,所以注釋掉Zend Debugger的調試器。

          此時,用localhost打開XAMPP管理頁,點擊 phpinfo,查看到:

          This program makes use of the Zend Scripting Language Engine:
          Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
              with DBG v3.9.10, (C) 2000,2010, by Dmitri Dmitrienko

          說明debugger安裝成功。

          3、打開PhpED(使用版本VeryCD上下載的[PHP綜合開發環境].NuSphere.PhpED.Professional.v5.9.5989.Incl.Keymaker-EMBRACE.zip),
          New project ->不使用向導,配置如下:
          4、點擊 tools->Settings->Run&Debug,配置如下:

          之后,便可以選擇項目中index.php等入口文件開始調試。當然也可以在是否設置在每頁第一行斷點看個人。此外,記得根據項目需要設置Default file encoding。

          注:5.9.5版本的PhpED在上圖的 HPPT mode,default browser 如果選擇外置的Mozilla firefox,在Run or debugger時將出錯,此時可以再Tools->Setting->tools->External browsers下根據IE的設置來設置firefox的設置。

          posted on 2011-08-19 15:59 放水老倌 閱讀(728) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 凌海市| 湘潭县| 珲春市| 奈曼旗| 宜城市| 东平县| 永春县| 合阳县| 石狮市| 聂拉木县| 广西| 平顺县| 桐柏县| 澄迈县| 雷州市| 炎陵县| 会昌县| 安吉县| 永顺县| 横峰县| 金平| 绿春县| 淮阳县| 灵丘县| 赤水市| 阳江市| 固安县| 通江县| 平舆县| 张家川| 宁陵县| 康乐县| 集安市| 铜川市| 泰州市| 中方县| 江口县| 宁南县| 江北区| 剑阁县| 克拉玛依市|