Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PDT XDebug Issue with Eclipse INDIGO(XDebug doesn't work. Errors out with the following message)
PDT XDebug Issue with Eclipse INDIGO [message #797546] Mon, 13 February 2012 16:18 Go to next message
Blues Clues is currently offline Blues CluesFriend
Messages: 1
Registered: February 2012
Junior Member

I have setup my eclipse IDE for PHP development. Trying to debug my first "hello world" php app using "Debug As"->"PHP Script" option on my Windows machine and it doesn't start the debug session but generates the following message in the console.

"You cannot use both -n and -c switch. Use -h for help."

However, when I run the same app using "Debug As"->"PHP Web Page" it works fine.

Can someone help with this issue? What might be wrong here? I have checked my PHP Executable settings which doesn't have PHP.INI specified as it is optional.

I have attached the settings screenshot so that you can see the basic config on my machine.

[Updated on: Mon, 13 February 2012 16:29]

Report message to a moderator

Re: PDT XDebug Issue with Eclipse INDIGO [message #798059 is a reply to message #797546] Tue, 14 February 2012 07:30 Go to previous message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
Registered: July 2009
Location: Japan
Senior Member
> "You cannot use both -n and -c switch. Use -h for help."
Make sure of your php version.
> BTW, which version of php are you using?
> >You cannot use both -n and -c switch. Use -h for help.
> I can see this message on php 5.2.6, but I cannot see it on php 5.2.8 nor
> 5.3.x.
> It seems that 5.2.8 or later version allow the combination of switches.

(php 5.2.x is no longer supported by
Previous Topic:Using ssh2 extension on Windows
Next Topic:I'm being crazy to setup xdebug
Goto Forum:

Current Time: Mon Jan 30 16:08:31 GMT 2023

Powered by FUDForum. Page generated in 0.06116 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top