[xdebug-general] Re: Breakpoints still not working in Eclipse...

From: Spencer Williams IV <enderandpeter[@]yahoo.com>
Date: Wed, 19 Nov 2014 15:32:12 -0800

Thank you very much for the response! I totally made some progress!

I had a feeling it was supposed to show me the actual file path on the system after file://. In the Path Mapping tab, I had a path to https://example.com/misc in the "Path on server" column, and then I selected the corresponding directory in the project workspace for the "Local Path" column. I also tried the "Path in File System" option instead of "Path to Workspace", but I was getting the same thing.

I then decided to choose "Do not map the following server path to a local resource", and remarkably, it's actually stopping at the breakpoints! It's still working after totally removing the Path Mapping entries. However, Eclipse is not highlighting the line it pauses on. Still, this is way better than before. Also, I look in the log now and it is showing an actual file system path after file://. So I guess I'm in the same boat as Thomas Widlar a few days ago... except it shows me the option Debug as PHP Web Application rather than Debug as Script...

Thank you very much Derick! I'll keep investigating...


"What a lark! What a plunge!"
-Virginia Woolf, Mrs. Dalloway

On Wednesday, November 19, 2014 3:38 PM, Derick Rethans <derick[@]xdebug.org> wrote:

On Wed, 19 Nov 2014, Spencer Williams IV wrote:

> <- breakpoint_set -i 636 -t line -f file:///https://example.com/misc/test.php -n 15

Your IDE sets bad breakpoints. It certainly should not include the
https://example.com, but instead it should be the proper filesystem path
to the files. It is very likely that you don't have your path mappings
set-up *correctly*.

> I indeed set breakpoints on lines 15, 2, and 9 in the file it names.
> But I notice how the file path it shows you begins with the file://
> protocol, followed by https://. Should it actually be showing me with
> a file path on the system rather than one on the server?


> I definitely set some paths up in Debug Configurations -> Server ->
> Configure -> Path Mapping, matching web server paths with file system
> paths, for the files I want to work with.

Perhaps you've made those mappings the wrong way around?

> As I look at past xdebug discussions and Eclipse forums, with all due
> respect, I am seeing both groups pointing the finger at each other.

Well, it's the IDE that needs to set the right breakpoints. If it
doesn't do that, it's either an IDE problem, or you have configured it

Received on Wed Nov 19 2014 - 23:32:14 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST