Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 208849 - Breakpoint doesn't stop - Launch config has only project
Summary: Breakpoint doesn't stop - Launch config has only project
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Yaron Mazor CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-05 22:11 EST by Toshihiro Izumi CLA
Modified: 2020-05-14 11:08 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toshihiro Izumi CLA 2007-11-05 22:11:17 EST
Debug launch configuration dialog accepts Project (not file) in File/Project field.

e.g.
Project    proj1
File       newfile.php
Real Path  c:\xampp\htdocs\newfile.php
Debug URL  http://localhost/newfile.php

You can set "/proj1" in File/Project field and execute debug.
Debug trace shows
>[PHPDebugTarget@18c908b] PHPDebugTarget: Setting Breakpoint - File C:/xampp/htdocs/newfile.php/newfile.php Line Number 3
>[ServerDebugHandler@1c121b6] PHPSimpleDebugHandler: ready: C:\xampp\htdocs\newfile.php 2

Stopped at first line but not stop at breakpoint.
Comment 1 Rudston Cullen CLA 2008-02-04 05:25:24 EST
Possibly more useful infos on this problem here (as I experience it):
http://yoopergeek.blogspot.com/2007/10/getting-breakpoints-to-work-in-eclipse.html#update

See the text box:
"Not sure if this helps, but I ran into the same problem myself. I found out that it was that the plugin expects the project root to be the http root.

My project structure had the http root as a subfolder of the project root.

If the http root isn't the same point as the project root, then the plugin can't correctly inform the debugger which file the breakpoint is in.

I ended up hacking the source to make the plugin work at a subfolder level."

Look forward to a fix!

Rudston Cullen


Comment 2 Gadi Goldbarg CLA 2008-12-02 09:47:09 EST
No longer reproducible in PDT 2.0.0
Tested on Wix XP
Eclipse SDK
Version: 3.4.1
Build id: M20080911-1700
debugger - org.zend.php.debug_feature-I20081127
pdt - N20081201
dltk-core-sdk-I-I200811251145-200811251145-incubation

[Kalin Yanev kalin.a@zend.com]
Comment 3 Gadi Goldbarg CLA 2008-12-02 09:47:43 EST
I'm closing it.

kalin yanev kalin.a@zend.com