Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Breakpoints only working on first pass(Breakpoints only work the first time eclipse is started and a certain PHP Web is executed.)
Breakpoints only working on first pass [message #551455] Fri, 06 August 2010 14:05 Go to next message
Stan  is currently offline Stan
Messages: 2
Registered: August 2010
Junior Member
Recently I installed eclipse, Xdebug and WAMP (version details are given below).

To test my installation, I created a couple of PHP Web files that make use of $_SESSION to pass variables from one page to the other. I can single step through both pages as many times as I want to without encountering any difficulties. I thus assume that my installation (of eclipse, Xdebug, Wamp Server) and the definition of my INI-files is correct. (Is there a better way of testing the interoperation of the aforementioned programs and settings?)

However, when I try to debug my project, which makes use of the jQuery library (http://www.jquery.com) and uploadify (a multiple file upload plugin for jQuery (http://www.uploadify.com)), my breakpoints only work correctly the first time I debug the PHP-file. It should be noted that the file in question calls uploadify.php. During this first (and only) debug session, I can see all of the PHP-related variables in uploadify.php (for example, the name of the file to be uploaded, its path and extension and its eventual destination after uploading) and can single-step through the code. The file upload is also completed correctly and places a copy of the file in the specified folder of my local server. Upon termination of the remote launch, the "Debug Session Ended" message is shown in the (internal) browser. Subsequent debugging attempts of the same PHP-file do not allow me step through uploadify.php.

As I would like to develop my project in eclipse, I need to be able to debug my code more than once. The only way I can do this at present, is to restart eclipse after the first debug session. Hopefully there a more efficient workflow is possible.

Thanks in advance,

Stan

Version details

WampServer Version 2.0

Apache Version Apache/2.2.11 (Win32) PHP/5.3.0
Apache API Version 20051115

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans

Eclipse IDE for PHP Developers 1.3.0.20100617-0520 epp.package.php
Eclipse Platform 3.6.0.I20100608-0911 org.eclipse.platform.ide
Eclipse Platform 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY org.eclipse.platform.feature.group
Eclipse Help System 1.2.0.v20100427-7e7jEKFEx2XlnZinYPtgz03 org.eclipse.help.feature.group
Eclipse RCP 3.6.0.v20100519-9OArFKvFtsd7WLUKh-DcYTS org.eclipse.rcp.feature.group
Equinox p2 Provisioning 2.0.0.v20100503-897HFZ-FdHjO2NQo0sD_Nt org.eclipse.equinox.p2.user.ui.feature.group
EPP PHP Feature 1.3.0.20100617-0520 org.eclipse.epp.package.php.feature.feature.group
Dynamic Languages Toolkit - Remote Development Support 2.0.0.v20100603-5--9oA5855C8K2A98F org.eclipse.dltk.rse.feature.group
Dynamic Languages Toolkit - Core Frameworks 2.0.0.v20100518-1923-7L--EAAoOVMSMc4AWEvJ org.eclipse.dltk.core.feature.group
RSE Core 3.2.0.v201005221100-7a7FFMRFC7sRd_SMeDdXwc org.eclipse.rse.core.feature.group
Eclipse CVS Client 1.2.0.v20100427-7B77FKs8sF7B77SDX4GW85 org.eclipse.cvs.feature.group
Eclipse Web Developer Tools 3.2.0.v201005241510-7O7CFb3EMf84nP-FHuc10NTz--M3 org.eclipse.wst.web_ui.feature.feature.group
Eclipse XML Editors and Tools 3.2.0.v201005241510-7H7AFUIDxumQGOb7ocjUR2Pvz-28 org.eclipse.wst.xml_ui.feature.feature.group
Eclipse XSL Developer Tools 1.1.0.v201005241600-7S7WFAKFIpS---NRIS1pbfYBUIQ org.eclipse.wst.xsl.feature.feature.group
EPP Common Package Feature 1.3.0.20100617-0520 org.eclipse.epp.package.common.feature.feature.group
JavaScript Development Tools 1.2.0.v201005270528-7C78FGDF9JgLWLMBWz-Ose6 org.eclipse.wst.jsdt.feature.feature.group
Mylyn Bridge: Eclipse IDE 3.4.0.v20100608-0100-e3x org.eclipse.mylyn.ide_feature.feature.group
Mylyn Connector: Bugzilla 3.4.0.v20100608-0100-e3x org.eclipse.mylyn.bugzilla_feature.feature.group
Mylyn Task List (Required) 3.4.0.v20100608-0100-e3x org.eclipse.mylyn_feature.feature.group
Mylyn Task-Focused Interface (Recommended) 3.4.0.v20100608-0100-e3x org.eclipse.mylyn.context_feature.feature.group
Mylyn WikiText 1.3.0.v20100608-0100-e3x org.eclipse.mylyn.wikitext_feature.feature.group
PHP Development Tools (PDT) SDK Feature 2.2.0.v20100519-1400-53-84QAN2IGRoLXQNHWOXe1La9Od org.eclipse.php.sdk.feature.group
Re: Breakpoints only working on first pass [message #551471 is a reply to message #551455] Fri, 06 August 2010 14:32 Go to previous messageGo to next message
Eclipse User
Originally posted by: dkel50.hotremovemail.com

Does break on first line still work ?
What are the path mappings for your server ?

Generating an Xdebug.log will help to show what breakpoints are being
transmitted to the xdebug component in apache and the local files for
which it wants to set the breakpoints on.

Dave
Re: Breakpoints only working on first pass [message #551507 is a reply to message #551471] Fri, 06 August 2010 18:05 Go to previous messageGo to next message
Stan  is currently offline Stan
Messages: 2
Registered: August 2010
Junior Member
Execution commences from the file
page1.php
which is located in http://localhost/project/bestellung/. Breaking on line 1 always occurs in this file. Single-stepping through page1.php shows the page in the browser. In the browser, the user clicks a browse button and then chooses a file. The browse UI closes and the user next clicks on an upload link. This action causes the file
uploadify.php
to be loaded. In the first (and only successful) debug session, a break occurs at line 1 of this file, allowing details of the file to be inspected.

In second (and subsequent incomplete) debug sessions, the breakpoint in line 1 of
uploadify.php
appears to be skipped and the file variables cannot be inspected as they could in the first session.

My Wamp Server points http://localhost/project/ to
C:/Documents and Settings/user/My Documents/My Webs/project
. There is no path mapping defined in eclipse.

In my
php.ini
file I include
xdebug.remote_log="c:/wamp/tmp/xdebug/xdebug_remote.log"
. How can I post this? The log, containing one good and a following not so good session is 386 KB.
Re: Breakpoints only working on first pass [message #551729 is a reply to message #551507] Mon, 09 August 2010 11:24 Go to previous message
Eclipse User
Originally posted by: dkel50.hotremovemail.com

you should be able to add an attachment to a forum post. Alternatively
raise a bugzilla and attach it to the bugzilla

Dave

On 06/08/2010 19:05, Stan wrote:
> Execution commences from the file page1.php which is located in
> http://localhost/project/bestellung/ Breaking on line 1 always occurs
> in this file. Single-stepping through page1.php shows the page in the
> browser. In the browser, the user clicks a browse button and then
> chooses a file. The browse UI closes and the user next clicks on an
> upload link. This action causes the file uploadify.php to be loaded. In
> the first (and only successful) debug session, a break occurs at line 1
> of this file, allowing details of the file to be inspected.
>
> In second (and subsequent incomplete) debug sessions, the breakpoint in
> line 1 of uploadify.php appears to be skipped and the file variables
> cannot be inspected as they could in the first session.
>
> My Wamp Server points http://localhost/project/ to C:/Documents and
> Settings/user/My Documents/My Webs/project. There is no path mapping
> defined in eclipse.
>
> In my php.ini file I include
> xdebug.remote_log="c:/wamp/tmp/xdebug/xdebug_remote.log". How can I post
> this? The log, containing one good and a following not so good session
> is 386 KB.
Previous Topic:Error (but it let me throw the script) on using $variable::method
Next Topic:XDebug - don't use "zend_extension_ts" with PHP 5.3!
Goto Forum:
  


Current Time: Thu Oct 02 14:48:32 GMT 2014

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

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