[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.php] Re: Problems with PDT and Xdebug
|
- From: Dave Kelsey <dkel50@xxxxxxxxxxx>
- Date: Tue, 20 Feb 2007 18:33:11 +0000
- Newsgroups: eclipse.tools.php
- Organization: EclipseCorner
- User-agent: Thunderbird 1.5.0.9 (Windows/20061207)
See embedded comments
Dave Kelsey
IchBin wrote:
OK I did some testing of "Debug as Web Script with Xdebug". This is what
I see:
- select a script in the PHP perspective.
- run "Debug as Debug"
- Select "PHP Web Script as Xdebug" and fill in the information for
launch. (Brake at first Line)
- select "debug" button
- Firefox pop up. This maybe a *problem* because in the
preferences\General\Web Browser the "Use Internal Web Browser" is now
grayed out. Will only let me use an external browser. That is weird
because I had "Use Internal Web Browser" selected before running this
debug session.
Don't know why eclipse has decided to not allow you to have an internal browser. Linux
is problematic with this, but windows seems to be ok with this.
- I then manually open the PHP debug perspective.
- In the "Debug" tab, on the PHP Debug perspective, I have to open up
the tree by selecting the entry under "PHP Thread". I think that this
the current line pointer.
This issue is described in the provided documentation.
- The first thing I see is the the "Variables" tab is loaded with all of
the script vars and their values.
- Debug is stopped at the 3 line of code. This is in the middle of a
comment.
- I can now Step through the script.
- I can not select "run to next STOP". It will not detect the next
manual STOP. It just runs to the end of the script.
"run to next STOP" is not something I am familiar with in PDT. Which version
are you using ? I have not looked at the latest integration level. If you have
a break point defined and you execute (ie F8) do you stop at the defined break point ?
if not, does your apache server have the htdocs set to your workspace ?
I know there is a pathmapper version as well on bugzilla, but I am not familiar with the changes
in that version as they were provided by someone else, are you using the pathmapper
version and trying to map the paths from the workspace to the version running on apache ?
- When I try to "Step Over" or "Step Into" the script the stepping is
not from one line of code to the next all of the time. It is skipping
lines of code. Like there is a sync problem between the real script and
what Xdebug thinks the next line is.
If you have embedded php code within an html page, I have seen similar results
with xdebug. This could be due to the way php converts non php script code into
echo statements. What version of xdebug are you using ?