NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Suggestion - checkbox to disallow tooltips for complex types


Joined: 30 May 2006
Posts: 92
Reply with quote
Hi,

in a debug mode I regularly experience "computer freezing" - this happens when:

* I have stopped on a break point in debug mode
* I point with mouse over a variable (often unintentionally, just randomly moved mouse)

It does not matter if my computer has 8 or 16 GB RAM - freezing always occurs, tested on my PC at home (16 GB) and at office (8 GB).

As to my observation I guess that "freezing" is caused by enabled tooltips (Settings -> Code Insights -> Tooltips enabled) .. runtime evaluation and conversion into string dump for complex objects.
Freezing never occurs on simple / primitive types (integers, ..).

Suggested solution:

A/ - limit deep / recursive object introspection to first 50 lines - though I am not sure if this is possible
or
B/ - add new option to Settings to dump only simple / primitive types, e.g. checkbox "Show tooltips only for simple types". This would avoid deep-objects introspection and converting into string lines, which is the root of the issue.

Solution B/ would guarantee that "freezing" will not occur and also make debug mode faster experience, but for some developers might be confusing (perhaps just showing tooltip over objects "Objects evaluation disabled - enable by unchecking Settings -> Code insights -> Show tooltips only for simple types" would suffice).
View user's profileFind all posts by lubosdzSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8328
Reply with quote
thanks, very valid observations. I'm going to implement it slightly differently -- option C -- which would show only top level keys/properties with their values. IF they have sub-keys/sub-properties (meaning complex structures) they will be shown with [+] marks on the left that would allow to expand them to see the content. Debugger would have to send only values to be shown -- not so lengthy in average.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 30 May 2006
Posts: 92
Reply with quote
Fantastic Dmitri, thank you very much.
Happy that you have recovered well after a long time.
View user's profileFind all posts by lubosdzSend private message
Suggestion - checkbox to disallow tooltips for complex types
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic