settings for debugging php with eclipse mars [message #1820977] |
Mon, 03 February 2020 13:20  |
Eclipse User |
|
|
|
I want to debug php with eclipse-mars.
1.I have downloaded eclipse-php-mars-2-win32.zip
and PHPEclipse-1.2.3.200910091456PRD-bin.zip.
I have unziped the first and copied the features
and plugins of the second in the features and
plugins locations of the first.
2.I further have installed xamp.(php5.5.12, apache2.4.9)
with zend-debugger.
I have set in the C:\wamp\bin\apache\bin\php.ini
xdebug.remote_enable = on
So xdebug.remote_enable is On, xdebug.remote_handler is dbgp and
xdebug.remote_host is 9000
3.I have built the Workspace: c:/wamp
4.Further I have built a eclipse Project with File->New->Project ProjectName www
Under c:/wamp/www lie my php-Program files which need no post variable and
are standalone objects.
5.In eclipse I have made the following settings:
Choose Windows->Preferences (that seemed for me the only location were
I have to make settings, also please note the three questionmarks).
a.PHP
Debug: PHP Server: Default PHP Web Server
PHP Executable: 5.5.12
Debugger: XDebug
Debuggers Zend Debugger, XDebug
Editor->Interpreter: PHP 5.5
PHP Excutables PHP 5.5.12
Servers http://localhost
b.PHPeclipse
BrowserConfiguration PHP Web Browser
PHP InstalledInterpreters C:\wamp\bin\php\php5.5.12\php.exe
PHP External Tools Run PHP command C:\wamp\bin\php\php5.5.12\php.exe
Parser command C:\wamp\bin\php\php5.5.12\php.exe -I -f{0}
XAMPP Start: c:\wamp\wampmanger.exe ?
Stop: c:\wamp\xampp_exe.stop ?
Appache: c:\wamp\bin\apache\apache2.4.9\bin\ApacheMonitor.exe or
httpd.exe?
XDebug Debugport 9000
PHP Interpreter C:\wamp\bin\php\php5.5.12\php.exe
c.Run/Debug
Launching
Launching Configurations PHP CLI Application
Perspectives PHP CLIApplication
Debug: Debug ?
Run: PHP
View Management Debug, PHP, PHP(default)
6.Now I see my php-Files in my eclipse-project. I start my WampServer.
7.I load one errorfree php-File in my php-perspective.
I choose eclipse Run->Debug
Then I have there a menue-point "debug on Server"
But I need "debug CLIApplication" or "debug WebApplication".
Wenn I click "debug on Server" I receive the error:
"the selection did not contain any resources that can run"
So the Question is: what is Wrong? Perhaps I have to make settings
under Debug->DebugConfigurations?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02064 seconds