This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 215728 - "Evaluating..." text in value column of variables using xdebug
Summary: "Evaluating..." text in value column of variables using xdebug
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.1.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
: 200481 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-19 12:43 UTC by geza83
Modified: 2013-06-07 08:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description geza83 2012-07-19 12:43:14 UTC
In a debug session I can see the text "Evaluating..." instead of the real value in the Variables window. I noiced it happens only when the variables size is big enough.

Example to reproduce:
debug_eval.php
<?php

$var = <<<TXT
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam mi nisl, euismod quis ornare fringilla, placerat at magna. Donec gravida erat viverra lacus interdum quis scelerisque diam dignissim. Nunc elementum venenatis tristique. Ut ut nisi vitae ipsum laoreet sollicitudin. Integer varius ultrices vestibulum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vestibulum sodales odio nec tellus eleifend faucibus. Cras ut eros quam, id dignissim sem. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam sem nulla, elementum eu placerat ac, placerat a diam. Vivamus vestibulum odio a diam commodo ultrices. Fusce ultricies sagittis est. Vivamus scelerisque malesuada commodo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aliquam suscipit justo nec neque placerat vitae vulputate libero tincidunt.

Maecenas in sem eu odio pretium porta vitae sit amet erat. Donec ultricies justo at nisl vulputate condimentum. Nulla facilisi. Nulla facilisi. Sed congue rhoncus ligula eget rutrum. Suspendisse non nunc ut nisi sodales suscipit eget vel leo. Curabitur vulputate faucibus est sed aliquam. Aenean eget sem est. Integer fringilla feugiat tempor. Fusce ornare malesuada lectus, eleifend elementum dui lobortis sed. Pellentesque nulla felis, sollicitudin ac sodales at, fringilla non lacus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Quisque nec lacus felis, non sodales tellus.
TXT;

exit; // add breakpoint here and look at $var
?>

Workaround:
To make netbeans show the value, click on the "..." button on the right. Now close the opened window with Cancel button. After that you should see the actual value.

Product Version = NetBeans IDE 7.1.2 (Build 201204101705)
Operating System = Linux version 3.2.0-26-generic running on amd64
Java; VM; Vendor = 1.6.0_24
Runtime = OpenJDK 64-Bit Server VM 20.0-b12
Comment 1 Ondrej Brejla 2012-07-19 12:49:42 UTC
Will look at it for 7.3. But P3 since it has a simple workaround (to click on a field in a table...).
Comment 2 Ondrej Brejla 2012-07-19 12:50:34 UTC
*** Bug 200481 has been marked as a duplicate of this bug. ***
Comment 3 Ondrej Brejla 2012-07-19 12:56:29 UTC
Note for me:

Simple fix is to increase the DbgpMessage.MAX_PACKET_SIZE, but have to evaluate it more deeply.
Comment 4 Ondrej Brejla 2012-07-19 14:26:28 UTC
Have to try to rewrite the "xdebug.var_display_max_data" option in php.ini. It could work.
Comment 5 miked_187 2012-08-03 17:16:05 UTC
I see this too, my work arounds are:

1) step to the next line, usually the value will be exposed at that point

2) open and close the view dialog popup a few times to view the value, it will usually update the actual value from evaluating... along the way

would be nice to have it fixed though, I'll try the MAX_PACKET_SIZE fix as well since this problem usually surfaces on ginormus variables
Comment 6 Ondrej Brejla 2013-06-07 08:15:17 UTC
Fixed together with issue #230764

You can set the value of max data in Options -> PHP -> Debugging tab.