Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans PHP breakpoint variable value "Evaluating..."

When I set a breakpoint in my PHP code I cannot see the content of a string variable because in the variables Value column it says "Evaluating...". What can be done to prevent this from happening? What is this, a timing problem? Can it be fixed with another setting?

I have seen this before but now I really need to know the value to find out my error.

I could isolate the problem and apparently it has to do with the result of PHP implode() that somehow takes too long or something.

like image 890
ñull Avatar asked Oct 10 '16 17:10

ñull


People also ask

How to check Variable value while debugging in NetBeans?

Generally, the pane underneath the code has some tabs - and one of them will say 'Variables'. Click on that tab and you will see variables and their values.

How do I open a variable in Netbeans?

Click on the "Watches" tab at the bottom. Now click on Run > New Watch at the top menu. Type in "name" to watch the name variable and press the OK button. After pressing enter you will notice that the name variable is in the Watches window.


2 Answers

I did not use Watches to evaluate the variable that was pending. I have no Watches and Balloon Evaluation set. I only use the Debug Variable display. I discovered that in my case the "Maximum Data Length" setting was too small. The variable value went beyond this limit. I was able to fix the issue by raising the limit.

like image 200
ñull Avatar answered Oct 09 '22 00:10

ñull


Open netbeans, to to Tools -> Options -> PHP

When you use Watches, then make sure Watches and Balloon Evaluation is checked:

enter image description here

Also make sure that variables you want to evaluate don't hit the "Maximum Data Length" limit. Adjust this when necessary.

like image 26
Dekel Avatar answered Oct 09 '22 01:10

Dekel