NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Debugging inside Projects


Joined: 15 Jan 2007
Posts: 2
Reply with quote
First off: hello everyone Wink

I tried out the evaluation version of phped but some things seem to not work as expected.

Software version(s)
phpED Version 4.6.2 (Build 4632eval)
PHP DBG Listener, version 3.1.7
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies with DBG v3.1.8, (C) 2000,2006, by Dmitri Dmitrienk

Installed Software
* XAMPP packet
- PHP 5.2.0
- Zend Extension
- Apache 2.0 Handler
* Joomla CMS

Project setup
Project
- Root directory: c:\Internet\MyProjectDirectory

Mapping
- Run Mode: 3rd party software
- Root URL: http://localhost/myProjectDirectory (apache directory alias)
- Root Directory: c:\Internet\MyProjectDirectory (local installation)

Files
- Default file to run: c:\Internet\MyProjectDirectory\index.php (as the entry point of my cms)

changed phped default data
Tools -> Settings : Tools -> Tools
- Path to php.ini points to my xampp php.ini to reflect the real environment

Debugging process
DBG Listener properly startet and connected
Code:
25.01.2007 13:48:52      New SSL certificate is successfully created
25.01.2007 13:48:52      Listener started
25.01.2007 13:48:55      IDE "PhpED IDEVersion 4.6.2 (Build 4632eval)" attached


If i set a breakpoint in one of my project files that is reached on the initial run, everything works fine. After my index.php is parsed, the output window pops up. At the same time, my local IP disconnects from the dbg listener and the last log file entry is "Debug session finished".

Well, unfortunately that behaviour leads to problems when clicking a link in the output window. The DBGSESSID isn't added to any link and so i am not able to debug files that aren't loaded with the first run of my index.php. I may add the dbgsessid manually but that takes plenty of time.

Is there anything i missed out in the configuration process?

Waiting for an answer with best regards - Arnd
View user's profileFind all posts by ArndSend private messageICQ Number
Veteran

Joined: 24 Jan 2006
Posts: 311
Reply with quote
Could you please check Tools->Settings->Tools->Debugger - see if session wide debugging is turned on. You can also set the debugger to stop at the first line after run in this part of the settings. ANother thing I'd like to ask- does your code do anything with cookies by any chance?
Thanks!
View user's profileFind all posts by yfaktorSend private message


Joined: 15 Jan 2007
Posts: 2
Reply with quote
Hi yfaktor and thanks for your answer.

The Debug session checkbox is checked. As i don't like to stop at the first line of code, this option is unchecked. The Joomla CMS uses cookies and sessions alot. But the dbgsessid is neither unset/deleted nor overwritten by other operations/actions.

Now i use the debugger along with IE7 toolbar as the phped build-in explorer doesn't act as expected -.-
View user's profileFind all posts by ArndSend private messageICQ Number
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Debugger has no problems with Joomla.
Make sure you run debugger using F9 and breakpoints that supposed to trigger are set on executing lines (they are marked with blue dots while stepping with F7).
Finally, make sure that eAccelerator is not installed or disabled. When it's on, debugger won't work with breakpoints.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Debugging inside Projects
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