S
S
Sergey Volkov2012-07-03 19:33:58
PHP
Sergey Volkov, 2012-07-03 19:33:58

Netbeans, xDebug, php - why does not stop at breakpoints

Website - on a virtual machine (virtual box)
Host system - windows 7
In netbeans, checkpoints stopped working, that is, the program, when executed, does not stop on them, but runs to the end.
But if you go to settings->PHP->debugging->Stop at the first line (enable this option), then it stops at the first line. But it still misses all breakpoints.

And the second question. Where to set up something so that breakpoints work not only in *.php files, but in any others. For example *.tpl?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
X
XRay39, 2012-07-04
@XRay39

I have the same problem. I found a walkaround rather than a solution: stop debugging on the first line-> put the cursor on the line below the breakpoint-> click jump to cursor. As a result netBeans stops on breakpoint'e.
The same if the cursor is placed on the breakpoint line

D
demimurych, 2012-07-05
@demimurych

There was a similar problem.
Only those breakpoints that were set at the time of the current debugging session worked.
Everything was solved with a netbian update.

A
anger1981, 2016-01-18
@anger1981

Check the paths of the files where you set the breaks and the paths of the files that netbins loads when debugging. For example, I created a project using the C:\ drive, and the debugger took the files of the same name from the Y:\ drive (Z:\ by default on Denver). I deleted the project created on C:\ and recreated it on the virtual Y:\ - it worked.

V
Valery Selitsky, 2012-12-05
@WaveCut

Faced the same problem with NB 7.3 beta 2 and a virtual host. I'll try to roll back NB, I'll tell you how it ended.

A
Alexander, 2014-02-17
@SantaCluster

Perhaps this article will help: blog.jetbrains.com/webide/2011/03/configure-php-de...
helped me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question