Joseph Woodward
Joseph Woodward

Reputation: 9281

XDebug ignores breakpoints within controller

I'm currently trying to debug an Symfony 2 powered application using XDebug on my local home server. Everything appears to be set up correctly as I'm able to set breakpoints within the app_dev.php file and step through them accordingly.

However any breakpoints set within a bundle's controller get ignored.

The corresponding URL is http://myapp.local/product-name/

Does anyone know what could be causing the breakpoint to be skipped?

Thank you.

Upvotes: 4

Views: 1837

Answers (2)

pliashkou
pliashkou

Reputation: 4130

Check if your folder is symlinked. If yes - you should define proper path in your IDE.

Also as LazyOne said xdebug_break(); works even in symlinked folder;

Upvotes: 2

hakre
hakre

Reputation: 197609

Does anyone know what could be causing the breakpoint to be skipped?

Nothing. The breakpoint is not skipped. The code is just not executed (in debugging mode) at that point.

Take care you have got an active debugging session.

Also if you want more specific help, post the code in question (you probably have set a breakpoint on a line where the debugger does not stop) and the exact steps you do for debugging.

Upvotes: 0

Related Questions