NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Debugger with Doctrine


Joined: 27 Nov 2009
Posts: 98
Reply with quote
Using Doctrine on a project. If I execute the following code, syslog is updated. But if I execute it through PhpED debugger, it is not. Note that the file in question is a proxy file. What can I do to still be able to debug it? Thanks

Code:
// This file is located in /var/www/doctrinetest/src
$collection=$this->account->getUsers();
foreach($collection as $entity) {
   //$entity shows as file: /var/www/doctrinetest/var/doctrine/proxy/__CG__MyNsMyAppDomainEntityUser.php
   $id=$entity->getId();
   syslog(LOG_INFO, 'never gets here');   //Breakpoint included on this line
}
syslog(LOG_INFO, 'never gets here');   //Breakpoint included on this line
View user's profileFind all posts by NotionCommotionSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Obviously you can't execute a file that uses $this on its topmost line, the $this should be somehow initialized first.
Perhaps you have a rewrite rule for your web that passes all URLs through a multiplexer that creates certain context and includes your script like the one you quoted.
In order to debug such scripts you need to run original URL in your browser using debugger toolbar that will supply DBGSESSID cookie. Similarly you can invoke the URL in the IDE if you specify that URL in the project properties -- see default URL input

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Debugger with Doctrine
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic