How to add arguments while debugging php scripts in Eclipse?

When debugging a PHP script in eclipse, I don't see the option to pass arguments to the script. But I see an option for JAva applications.

Is this feature not yet supported by eclipse? Or is there a way and am I skipping it?

I am using Helios Eclipse for PHP.

thank.

+3
source share
3 answers

I use Eclipse Indigo with PDT, and there is an option in Run -> Debug Configurations -> PHP CLI Application -> YOUR_CUSTOM_CONFIGURATION -> PHP Script Arguments (second tab).

+4
source

You should be able to pass arguments through the debug URL as follows:

http://example.com?x=z&a=b
+1
source

, , .

Zend Studio 11.

My solution was to use Alternate PHP (CLI) instead of Project Default PHP (CGI) in the Debug Configurations dialog box to get the contents of the PHP Tab Scripts Arguments for proper registration. When using CGI mode, my arguments were attached to the end of the debugger arguments and were not registered.

0
source

Source: https://habr.com/ru/post/1790627/


All Articles