Breakpoints ignored when using xdebug

I've got PHPStorm sort of working with xdebug, but there is a problem that makes it not very usable.

I set up xdebug on the server, and set up an ssh tunnel so my client can receive the xdebug connection.  This seems to work fine.  However, the PHPStorm debugger only seems to come to life if I set "Break at the first line" in Settings -> PHP -> Debug, in other words, if this setting is unchecked, any breakpoints are ignored and the debugger never stops on my lines with breakpoints.

How do I get the debugger to stop at breakpoints?

8 comments
Comment actions Permalink

Hello Joe,

What version of PhpStorm do you use?

Thank you for feedback!

0
Comment actions Permalink

The About box says:

JetBrains PhpStorm 3.0
Build #PS-111.19
Built on November 28, 2011

0
Comment actions Permalink

Joe,

Most likely you have a problem related to path mappings configuration. Please attach screenshot of the following configuration: Project Settings -> PHP -> Servers.

Thank you for feedback!

0
Comment actions Permalink

PS_screenshot_edited.png

The blacked out part is just the identifiable part of the domain name.

The set up is this:

1)  I have the source on the server mounted as an external drive using the ExpanDrive utility.  This is "Pion".
2)  I start the application in a browser and initiate debugging with the bookmarklet.
3)  The "htdocs" directory is the document root where html and PHP files live.
4)  The "lib" directory is where a lot of PHP code that is called from "htdocs" lives.
5)  I need to be able to set breakpoints in both "htdocs" and "lib" code, but when I do, they are always ignored.  The only way I can get the debugger to break is to set "Break at the first line".

0
Comment actions Permalink

PS_screenshot_edited.png
Hopefully this image is clearer?

0
Comment actions Permalink

Please provide some logs:


I think the same as Nikolay -- most likely it is a path mapping issue (based on your description)

In any case -- try creating brand new project with very simple php file and try to debug it:

<?php

$a = 5;
$b = 4;
$c = $a + $b;
echo $c;

Once you will have this working properly you can apply the same approach/fix to your real project.

0
Comment actions Permalink

Joe,

Sorry for delay. Please follow Andriy suggestion.

Thank you for feedback!

0

Please sign in to leave a comment.