I have installed Zend Studio 12.0.2 trial version in my linux operating system.How can I run php code in Zend Studio. I have search for the possible answers in stack overflow. I got this link http://files.zend.com/help/Zend-Studio/content/running_php_scripts_locally.htm but I cant find "php scripts" in run configurations.So I need to know what's the issue and how can I solve and run my php code?
Your server must be running the Zend Debugger or Xdebug in order for remote debugging and profiling capabilities to function. The Zend Debugger comes bundled with Zend Studio and Zend Server. For instructions on installing and configuring Xdebug, see Installing Xdebug and Configuring Xdebug.
You can read more in:
http://files.zend.com/help/Zend-Studio/zend-studio.htm#running_php_web_pages.htm
Related
I am trying to install Xdebug 2.2.1 on my mac. I have MAMP installed and it runs PHP 5.4.4. The problem I am having is that I cannot compile the source code. I have tried some suggestions, such as
Failing to build xdebug
but the solution it gives is not the right one, because it uses the Xcode php platform (5.3.x version) in order to build Xdebug.
I also have tried
Can't install Xdebug on php 5.4.4
but the php sdk does not let me build Xdebug, it throws some errors I cannot manage.
Does anybody succeeded in building Xdebug for PHP 5.4.4?
You might want to look into the Liip PHP package. It's pretty straightforward to install and includes the XDebug extension.
http://php-osx.liip.ch/
I am trying to get zend debugger woking with eclipse so that I can trigger breakpoints in my code.
I have installed wamp 2.2 (uses PHP 5.3.10 - thread safe)
I have installed the eclipse 'all in one' package from zend.
I have updated my php.ini to include
zend_extension = "c:/wamp/bin/php/php5.3.10/zend_ext/ZendDebugger.dll"
[Zend]
zend_debugger.allow_hosts="127.0.0.1"
zend_debugger.expose_remotely=always
When I launch my php.exe it shows
Cannot load Zend Debugger - it was build with configuration API220090626,NTS,VC9, whereas running engine is API2200090626,TS,VC9
I have read that ZendDebugger only works as non thread safe so I cannot just download a ts version. I cannot find a download link for php 5.3.10 (http://windows.php.net/download/)
However, when I try to replace my copy of php with 5.3.13 (nts) my sqlsrv extension is not compatible and I get the error
PHP Startup: Unable to load dynamic library 'c:wamp/bin/php/php5.3.10/ext/php_sqlsrv_53_nts.dll' - %1 is not a valid Win32 application
If I change my php.ini to not load the sqlsrv extension I still get the error
Failed loading c:/wamp/bin/php/php5.3.10/zend_ext/ZendDebugger.dll
Does anyone know how I can get debugging to work with Zend Framework, Eclipse, wamp and sqlserv?
Cannot load Zend Debugger - it was build with configuration API220090626,NTS,VC9, whereas running engine is API2200090626,TS,VC9
NTS means Not-Thread-Safe, and hence you must use a NTS build of PHP... Which is how you run PHP as a FCGI process (vs. Apache Thread via mod_php).
Zend does not usually provide or support TS builds of anything anylonger (since after PHP 5.2), and it looks like your setup is meant for a TS build...
You could try two things:
Use a WAMP that ships with PHP as FCGI (NTS) option (I know the latest version of Wamp-Developer does, but it's commercial, maybe see if XAMPP or another Wamp does?)
Or instead of ZendDebugger, try using XDebug. It comes both as TS and NTS builds. And I'm sure you can use Eclipse with it.
I am trying to get the zend debugger to work but till now I have failed. I have searched everywhere and tried everything I found but still not working.
I am using windows 7 64 bit with Zend studio professional edition 8.0. I have vmware installed on windows and have an opensuse 11.4 64 bit server setup. it is installed in minimal so i dont have gui just commands. On open suse i have php 5.3.5, apache 2.2.17 and mysql installed. I also installed Zend Debugger 5.3.X which I downloaded from zend's website. I've put the ZendDebugger.so file into /usr/lib64/php5/extensions/
I inserted the following in the php.ini for debugger
[Zend]
zend_extension="/usr/lib64/php5/extensions/ZendDebugger.so"
zend_debugger.allow_hosts= 127.0.0.1, 192.168.4.70
zend_debugger.expose_remotely=always
in phpinfo(), zend debugger is not loading
anyone know what I am doing wrongly here or any suggestions i should try?
Thank you
UPDATE!!
Since I have not managed to get this thing working with my setup could anyone of you tell me if I can use XDebug with my setup i.e. Zend studio 8 + Apache + XDebug?
So finally after trying everything I found the solution for the problem.
I had a missing file in linux so zend debugger wasnt working. To find what was the problem I used the following command in linux
PHP -m
This shows all the modules that are installed on the OS and if there are any problems it will tell you what the problems are. I got an error message of missing libssl.so 0.9.8. Opened yast -> software management types SSL and installed the 0.9.8 and everything is fine now.
Zend studio 8 and 9 are not compatible with xdebug since the Zend studio team developers do not test that XDebug works in their IDE as we speak. Read more here:
http://forums.zend.com/viewtopic.php?f=59&t=24113
My conclusion is that Eclipse Indigo with PDT is the best solution out there for the moment until the Zend developers solve this.
Looks like you've followed the instructions to the letter with the exception of the multiple IP addresses.
The manual states they should be separated by commas. Try changing it to
zend_debugger.allow_hosts=127.0.0.1,192.168.4.70
Have you restarted Apache since installing the debugger?
I got the latest XAMPP package and extracted it at c:\tools php.exe -v gives following output
C:\tools\xampp\php>php.exe -v
PHP 5.3.5 (cli) (built: Jan 6 2011 17:54:09)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Eclipse PDT, I am using, has this version
Eclipse for PHP Developers
Version: Helios Service Release 2
Build id: 20110218-0911
Then I added ZendDebugger to eclipse from http://downloads.zend.com/pdt, so it created folder C:\tools\eclipse-php-helios-SR2-win32\plugins\org.zend.php.debug.debugger.win32.x86_5.3.18.v20100905\resources\php53
I modified php.ini { found in c:\tools\xampp\php } to setup ZendDebugger.dll
But no matter what I do, I am not able to debug my php web applications.
I get this error when I do "Test Debugger" from Eclipse
A timeout occured when the debug server attempted to connect to the following client hosts/IPs: -127.0.0.1
Then I came across this old post Installing Zend Debugger on Wamp/Windows Vista. Do I need to go back to old versions of php in order for zend debugger to work with Eclipse?
regards, Yogesh
xdebug is working in my case - so this should not be a problem related to php5.3 and xdebug.
For this I'd check the following things:
Is xdebug installed and enabled? (call phpinfo() to get more informations) If you can't find any informations xdebug is not installed.
Does xdebug stop the script if you call the php-function xdebug_break(); ?
xdebug needs a cookie to be activated. Is this cookie set by eclipse? Just try var_dump($_COOKIE)
Do you have this behaviour also if you try another environment? For example netbeans or phpstorm?
If the function xdebug_break() works but the script does not stop at breakpoints set in the IDE - I'd check if the dll-file for xdebug is included as zend_extension or extension. Xdebug has to be included as zend_extension for it has to be started before the parser of php is started!
Here's a good link to explain every step in it's detais. It's related to the IDE Komodo - but the installation of xdebug is the same:
http://docs.activestate.com/komodo/5.0/debugphp.html
Bye
Simon
Have you managed to get Aptana Studio debugging to work? I tried following this, but I don't see Windows -> Preferences -> Aptana -> Editors -> PHP -> PHP Interpreters in my menu (I have PHP plugin installed) and any attempt to set up the servers menu gives me "socket error" when I try to debug. Xdebug is installed, confirmed through php info.
I've been using ZendDebugger with Eclipse (on OS X) for a while now and it works great!
Here's the recipe that's worked well for me.
install Eclipse PDT via "All in one" package at: http://www.zend.com/en/community/pdt
install ZendDebugger.so (http://www.zend.com/en/community/pdt)
configure your php.ini w/ the ZendDebugger extenssion (info below)
Configuring ZendDebugger:
edit php.ini
add the following:
[Zend]
zend_extension=/full/path/to/ZendDebugger.so
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always
zend_debugger.connector_port=10013
Now run "php -m" in the command line to output all the installed modules. If you see the following then its installed just fine
[Zend Modules]
Zend Debugger
Now restart Apache so that it reloads PHP w/ the ZendDebugger. Create a dummy page with in it and examine the output to make sure the PHP apache module picked up ZendDebugger as well. If it's setup right you will see something like the following text somewhere in phpinfo()'s output.
with Zend Debugger v5.2.14, Copyright (c) 1999-2008, by Zend Technologies
OK - but you wanted Aptana Studio... at this point I install the Aptana Studio Plugin into the PDT build of Eclipse. The instructions for that are at: http://www.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration
That setup has served me well for a while - hopefully it helps you too
-Arin
This is not related to Aptana Studio, but if you are looking for a PHP XDebug debugger client on OS X, you can try MacGDBp (Free/GPL).
I realize that this is a old thread but I was having the same problem with Aptana Studio 3 and FireFox. If anyone is having this problem make sure that FireFox has FireBug V1.8.X installed, any other version might give you the same problem...
Hope this helps