Debugging local Drupal Web Site |
Guru master
|
With Drupal most requests do go through index.php due to a rewrite rule in the .htaccess file.
Try adding a breakpoint to index.php and see if it works. I've seen that message many times where breakpoints and debugging worked absolutely fine. Does your Drupal site run okay with 127.0.0.1 ? Older Drupal was quite fussy about having a valid domain name (eg mysite.local) to run properly. It could run with localhost (which is not a valid domain name) or an IP address, but it caused problems. I'm not sure if newer versions of Drupal behave better, but other frameworks have similar issues. If you debug other sites using 127.0.0.1 or localhost then you could find cookies a problem because the cookies will be shared. You can define your own domain names using your computers hosts file and you might find that is useful in many respects, including debugging. |
||||||||||||
|
|
Setting a break point in index.php does work with the site running as localhost.
I've had plenty of experience debugging with other IDEs (Visual Studio, Eclipse, etc.). Is the debugging methodology the same with PHPED? For instance, do I just need to know what code I want to set a break point, set it, and work from there? |
||||||||||||
|
Guru master
|
PhpED debugging works more similarly to other non-PHP IDE's such as VisualStudio than Eclipse (with xdebug or Zend debugger) does. For example, it supports setting of the next statement and better visualisation of variable values in callers.
Whilst the PHP IDE itself gets some negative comments for lacking features, the NuSphere debugger does appear to be technically better than the other PHP debuggers. You can set breakpoints anywhere, plus can use local or global expressions for activating those breakpoints. You can also use the DebugBreak() statement with is a convenient way of pausing executing due to complex conditions, good for CLI, cron or other code that maybe runs outside of a debug session, or you can use it like an assert. |
||||||||||||
|
Debugging local Drupal Web Site |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by