2012-04-12 3 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 라이트와 함께 작업 Xdebug는 얻을 수있는 방법이 있습니까?
  2. 휴대용 작동하는 다른 디버거?
+2

확실하지,하지만 당신은 \ "와 같은 경로를 사용하여 시도 할 수 php \ ext \ php_xdebug "이며 드라이브 문자는 PHP가 실행중인 드라이브 (플래시 드라이브)라고 가정합니다. – Corbin

답변

1

가장 좋은 옵션은 Windows에서로드 할 때 자동으로 항상 동일한 드라이브 문자를 할당하는 작은 배치 스크립트를 갖는 것입니다. USB 드라이브 자체에서 자동 실행이 가능하므로 완전히 휴대 할 수 있습니다.

@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 

위의 예는 여기에서 해제되었다 - 그리고 당신은뿐만 아니라 거기에 몇 가지 다른 예를 찾을 수 있습니다 :

스크립트는 다음과 같이 보일 것이다 http://www.techrepublic.com/forum/questions/101-220894/force-thumb-drive-or-flash-drive-to-same-drive-letter-each-time

0

는 상대 경로가 아닌 문제를 해결하셨습니까?

zend_extension = "\ PHP는 \ 내선 \의 php_xdebug.dll"

xdebug.profiler_output_dir = 임시 \가 작동하는지