2012-04-12 28 views
0

私はUSBドライブ用にXAMPP Liteを使用しています。私は完全な機能Netbeansポータブル版を発見した。移植可能なPHPデバッグ

問題はパスの問題のためにXDebugをインストールできません。例えば、ご覧のとおり、私のローカルPCサーバPHP.ini設定ファイルにその

[zend] 
zend_extension = "C:\Program Files (x86)\PHP\ext\php_xdebug.dll" 
xdebug.remote_enable=On 
xdebug.remote_host="localhost" 
xdebug.remote_port=9000 
xdebug.remote_handler="dbgp" 
xdebug.profiler_enable = On 
xdebug.profiler_output_dir = C:\Windows\temp 
xdebug.dump_globals=On 
xdebug.show_exception_trace=On 
xdebug.collect_params=4 

のように見える、すべてのパスは絶対です。私はドライブレターを意味する。しかし、私はUSBフラッシュドライブの絶対パスを書くことはできません。

私の質問は以下のとおりです。

  1. は、USBフラッシュドライブにXammp Liteでの作業はXdebugを取得する方法はありますか?
  2. 移植可能な代替デバッガはありますか?
+2

わからないが、あなたは\」のようなパスを使用して試みることができますphp \ ext \ php_xdebug "と表示され、ドライブ文字はPHPが実行しているドライブ(フラッシュドライブ)とみなされます。 – Corbin

答えて

0

は、相対パスではありません:あなたはそこにもカップル他の例を見つけることができます - 上記の例はここから持ち上げた

@echo off 

set NewLetter=X 

@REM Find the (USB) drive with the flagfile "USB.root" and change its drive letter to "%NewLetter%" 

@REM Abort if %NewLetter% already exist 
if exist %NewLetter%: goto END_USB_DRIVE 

if not exist "%SystemRoot%\System32\DISKPART.EXE" goto END_USB_DRIVE 

@REM Find the drive with the flag file and set %_USBroot% to the old letter 
for %%i in (c d e f g h i j k l m n o p q r s t u v w y z) do (
if exist %%i:\USB.root set _USBroot=%%i: 
) 
@REM Abort if no Drive with the flag file has been found 
if "%_USBroot%" == "" goto END_USB_DRIVE 

@REM Create the script file for DiskPart.exe on the USB-drive 
echo select volume %_USBroot<> "%_USBroot%\ChangeDrvLetter.txt" 
echo assign letter=%NewLetter<>> "%_USBroot%\ChangeDrvLetter.txt" 

@REM Do the change -> %NewLetter% 
DISKPART /S "%_USBroot%\ChangeDrvLetter.txt" 
if exist "%NewLetter%:\ChangeDrvLetter.txt" del "%NewLetter%:\ChangeDrvLetter.txt" 

:END_USB_DRIVE 

スクリプトは次のようになりますあなたの問題を解決しましたか?

代替としてzend_extension = "\ PHPの\のext \のphp_xdebug.dll"

xdebug.profiler_output_dir = TEMP \それが動作するかどう

関連する問題