TechBlog

Teknik och filosofi

Netbeans ignores breakpoints (Netbeans, PHP, XDebug)

inga kommentarer

 

A small problem I stumbled on today: I am developing a PHP application in Netbeans and wanted to use XDebug for debugging. I have done this before and it has never failed me.

But my new project just wouldn’t break on my breakpoints, Netbeans ignores the breakpoints.

When you try to Google this problem you realize that XDebug is not your self-playing-piano… There are a lot of things that can go wrong. I found the answer in this question on Stackoverflow:

http://stackoverflow.com/a/22282330/5133155

On thing to remember is that the index page of our application must be a PHP file, it can not be a HTML file.

image

Very annoying problem that can easily be overlooked…

Av kalle

oktober 13th, 2016 at 9:34 f m

Kommentera