Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How to debug other file except index.php?
How to debug other file except index.php? [message #1564191] Wed, 14 January 2015 17:02 Go to next message
Pan Gas is currently offline Pan GasFriend
Messages: 3
Registered: January 2015
Junior Member
Hi everybody.
I 'm trying to debug something in OpenCart with Eclipse PDT (Version: Luna Service Release 1a (4.4.1) Build id: 20150109-0600)
The debuger enters the index.php (localhost/opencart/index.php) just fine, goes through code normally.
But it doesn't go to other file, for example localhost/opencart/admin/controller/sale/order.php.

This is in the back end, and opens when we click on the 'Sales" menu item.
Why dosn't the debuger go to the other files that are 'executed' after index.php?
Re: How to debug other file except index.php? [message #1564320 is a reply to message #1564191] Wed, 14 January 2015 18:36 Go to previous messageGo to next message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
I do this successfully with Joomla. Are the other PHP files inside your Eclipse project? When you say it "doesn't go to the other file", do you mean that the other file doesn't get executed or that the debugger doesn't break at a breakpoint in these files?
Re: How to debug other file except index.php? [message #1565409 is a reply to message #1564320] Thu, 15 January 2015 09:05 Go to previous messageGo to next message
Pan Gas is currently offline Pan GasFriend
Messages: 3
Registered: January 2015
Junior Member
Yes, all the files of Joomla are in my Eclipse project.
The files do get executed.
I mean that the debugger doesn't break at a breakpoint in these files.
Re: How to debug other file except index.php? [message #1565573 is a reply to message #1565409] Thu, 15 January 2015 11:01 Go to previous messageGo to next message
Pan Gas is currently offline Pan GasFriend
Messages: 3
Registered: January 2015
Junior Member
I had to add 'eclipseworkspace' manually ('eclipseworkspace' shown by the red arrow in the picture ), because for some unknown reason, it's not added automatically.
index.php/fa/20446/0/
  • Attachment: scsh1.jpg
    (Size: 114.36KB, Downloaded 1669 times)

[Updated on: Thu, 15 January 2015 11:03]

Report message to a moderator

Re: How to debug other file except index.php? [message #1654798 is a reply to message #1564191] Fri, 06 March 2015 21:21 Go to previous messageGo to next message
Ernest Wagner is currently offline Ernest WagnerFriend
Messages: 6
Registered: July 2014
Junior Member
I'm betting if you set breakpoints in the other files, Eclipse will stop there, but still will not step into the functions. At least that is the way Luna works on my Fedora x86-64 system. It may be difficult to decide just where to set the breakpoint so xdebug/zendebug will trigger.

I resolved the problem by reverting back to Kepler. It is capable of stepping into other files from the index.php without guessing where to set the next breakpoint. The PDT plug-in can be updated, so I'm not sure I am losing much functionality.

Ernie
Re: How to debug other file except index.php? [message #1690609 is a reply to message #1564191] Sun, 29 March 2015 22:11 Go to previous messageGo to next message
sujeeth kalyan is currently offline sujeeth kalyanFriend
Messages: 1
Registered: March 2015
Junior Member
problem solved thank you
Re: How to debug other file except index.php? [message #1691330 is a reply to message #1564191] Mon, 06 April 2015 06:01 Go to previous messageGo to next message
Kelvin Smith is currently offline Kelvin SmithFriend
Messages: 7
Registered: April 2015
Location: Suite 1, 7 Commercial Str...
Junior Member

Hi,

Can I do this with Magento or Joomla?
Re: How to debug other file except index.php? [message #1691536 is a reply to message #1691330] Wed, 08 April 2015 00:00 Go to previous messageGo to next message
Kevin Dilan is currently offline Kevin DilanFriend
Messages: 1
Registered: April 2015
Junior Member
Yes, all the files of Joomla are in my Eclipse project.
The files do get executed.
I mean that the debugger doesn't break at a breakpoint in these files.
Re: How to debug other file except index.php? [message #1706779 is a reply to message #1691536] Mon, 31 August 2015 05:21 Go to previous message
Ranjeet Kumar is currently offline Ranjeet KumarFriend
Messages: 6
Registered: August 2015
Junior Member
I tried Joomla many times in various projects but i Did'nt find it a best one.....
Previous Topic:Unhandled event loop exception while creating a plugin
Next Topic:Eclipse, PHP, mySQL and WAMP Server
Goto Forum:
  


Current Time: Tue Mar 19 02:50:24 GMT 2024

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

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

Back to the top