Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi for PHP/Debugger/Breakpoints    [ Add a report in this area ]  
Report #:  64621   Status: Closed
Breakpoints are ignored
Project:  HTML5 Builder Build #:
Version:    2.0 Submitted By:   Tangre Philippe
Report Type:  Basic functionality failure Date Reported:  7/19/2008 3:43:03 AM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   262539
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: :
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Similar with report 49773  : "Often breakpoints are ignored although single stepping with F8 and F7 works well. If set in the first line of the first module, the breakpoint works in most cases, other positions they are ignored most of the time. In VCL demos breakpoints work."

But it could be reproduce and workaround. It seems to be link with "Delphi for PHP Projects" location.

Steps to Reproduce:
Use a French Windows XP.

Configure "Mes Documents" (My Documents) folder to be place on Drive "D:".

Install Delphi 4 PHP on drive D:, in folder "D:\PERSO\Program Files\CodeGear\Delphi for PHP\2.0" (by default "Delphi for PHP Projects"'s folder was create in "Mes Documents" on D:),
so like un
    echo "aksjdaksjd";
    echo "ue380947398457398457";

Breakpoint in first line works, in second line is ignored

Now, move "Delphi for PHP Projects" folder in D:\PERSO or D:\ but not in "My Documents" folder.

Create unit2.php with previous code in this folder.

Place breakpoint anywhere : it is work !

I think their is not only a problem with the drive location of source (source must be place in the same drive of D4PHP) but also with the location of D4PHP Projects folder. Perhaps a problem with security too : "Mes Documents" or "My Documents" is place under profiles/"USERNAME"/My Documents. Or problem with localisation with Windows XP ("Mes documents", "My Documents" ...).

Michael Schumann at 5/26/2009 11:27:47 PM -
My Version: German, currently not using VCL

I am very disappointed that neither Codegear nor Embarcadero seem to take this issue seriously! For me it is a Killer since I cannot use the debugger. I spent days with reinstalling and changing paths, code that lack in my project work!

Breakpoints: I can confirm that several paths have influence:

I had d4PHP in c:\programme}d4php and my projects in e:\_proj where e: also was equal to My Documents. Debugging didnt work at all. After moving d4php to drive e: and moving my documents back to the default location in c: I could set breakpoints in simple files like the example.

If I use constructs like


at the beginning of my index.php, debugging is no longer possible. I suspect again the path issue, perhaps internally paths change when including oder requiring files in other directories and the debugger looses the connection.

In the case above I can set any breakpoint in common/ but not in index.php, what proves my suspicion.

Michael Schumann at 5/26/2009 11:37:15 PM -
Having tested for days and just after having written the last comment I discovered that a login procedure and the associated delay seem to have caused the debugger disconnection. after having skipped the login procedure I can now debug also in index.php and I am happy again! Hopefully this is stable now.

Server Response from: ETNACODE01