set EXISTS_FLAG=false
echo %JAVA_OPTS%|find "Xdebug">nul&&set EXISTS_FLAG=true
if "%EXISTS_FLAG%"=="true" (
echo 1
) else (
echo 2
)
set EXISTS_FLAG=false
echo %JAVA_OPTS%|find "Xdebug">nul&&set EXISTS_FLAG=true
if "%EXISTS_FLAG%"=="true" (
echo 1
) else (
echo 2
)