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.
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.
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.
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.
Open netbeans, to to Tools -> Options -> PHP
When you use Watches, then make sure Watches and Balloon Evaluation
is checked:
Also make sure that variables you want to evaluate don't hit the "Maximum Data Length" limit. Adjust this when necessary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With