brookhong / DBGPavim

This is a plugin to enable php debug in VIM with Xdebug, with a new debug engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Breaking at breakpoint doesn't work

scribu opened this issue · comments

Hello,

First of all, just wanted to say that this seems to be the best vim plugin for interactive PHP debugging out there.

I have let g:dbgPavimBreakAtEntry = 0 in my vimrc.

After pressing F5, I get PHP-bae-LISN, I trigger XDEBUG_SESSION_START=1 in the browser, but nothing happens.

If I switch to breaking at entry (by pressing F8), it works fine.

Also, I've made sure that the code under the breakpoint is actually executed in a normal request (several times in fact).

Any suggestions?

More info:

  • XDebug 2.1
  • PHP 5.3.10 (using php-fpm + nginx)
  • Vim 7.3
  • Python 2.7
  • Linux (Ubuntu 12.04)

How does the code where the breakpoint sets get executed? IE. Is the code triggered by the page directly or through another web service call(or system call)?

If the code is not triggered by the page directly, then setting XDEBUG_SESSION_START=1 in url will not work.

You can add below line to your apache conf file --

php_value xdebug.remote_autostart 1

Then you need not set XDEBUG_SESSION_START anywhere.

The code is executed in the same process.

It does work if I put the breakpoint at the second statement in the initial index.php file, but not if I put it deeper in the code stream.

Maybe it's because some required file paths are loaded from the database?