Breakpoints ignored when using xdebug Follow
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?
Please sign in to leave a comment.
Hello Joe,
What version of PhpStorm do you use?
Thank you for feedback!
The About box says:
JetBrains PhpStorm 3.0
Build #PS-111.19
Built on November 28, 2011
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!
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".
Hopefully this image is clearer?
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:
Once you will have this working properly you can apply the same approach/fix to your real project.
Joe,
Sorry for delay. Please follow Andriy suggestion.
Thank you for feedback!
Andriy,
Thanks!:)