alexnaspo / var_dumpling

var dumpling is a Chrome/Firefox extension that beautifies var_dump responses.
vardumpling.com
81 stars 13 forks source link

How to guide? #6

Open blowsie opened 11 years ago

blowsie commented 11 years ago

How do use this plugin? I installed it and my var_dump is still one long string.

Event Object ( [event_id] => 2 [post_id] => 61 [event_slug] => traditional-music-session [event_owner] => 1......................

alexnaspo commented 11 years ago

Normally, the plugin would work automatically as long as there is no html rendered in the page (working on this issue). However, It seems this var dump response is not caught by the regEx. I will work on updating it. Thanks for the support!

drnikki commented 11 years ago

Same, my magento objects don't trigger the plugin at all.

object(Varien_Object)#396 (7) { ["_data":protected]=> array(3) { ["comment_count"]=> int(0) ["view_count"]=> int(125) ["vote_count"]=> int(0) } ["_hasDataChanges":protected]=> bool(true) ["_origData":protected]=> NULL ["_idFieldName":protected]=> NULL ["_isDeleted":protected]=> bool(false) ["_oldFieldsMap":protected]=> array(0) { } ["_syncFieldsMap":protected]=> array(0) { } } object(Varien_Object)#196 (7) { ["_data":protected]=> array(3) { ["comment_count"]=> int(0) ["view_count"]=> int(125) ["vote_count"]=> int(6) } ["_hasDataChanges":protected]=> bool(true) ["_origData":protected]=> NULL ["_idFieldName":protected]=> NULL ["_isDeleted":protected]=> bool(false) ["_oldFieldsMap":protected]=> array(0) { } ["_syncFieldsMap":protected]=> array(0) { } } object(Varien_Object)#388 (7) { ["_data":protected]=> array(3) { ["comment_count"]=> int(0) ["view_count"]=> int(0) ["vote_count"]=> int(0) } ["_hasDataChanges":protected]=> bool(true) ["_origData":protected]=> NULL ["_idFieldName":protected]=> NULL ["_isDeleted":protected]=> bool(false) ["_oldFieldsMap":protected]=> array(0) { } ["_syncFieldsMap":protected]=> array(0) { } } object(Varien_Object)#276 (7) { ["_data":protected]=> array(3) { ["comment_count"]=> int(0) ["view_count"]=> int(116) ["vote_count"]=> int(5) } ["_hasDataChanges":protected]=> bool(true) ["_origData":protected]=> NULL ["_idFieldName":protected]=> NULL ["_isDeleted":protected]=> bool(false) ["_oldFieldsMap":protected]=> array(0) { } ["_syncFieldsMap":protected]=> array(0) { } }
alexnaspo commented 11 years ago

@drnikki Found a fix for that object, will push it up soon. Thanks for the help!

@blowsie Sorry for the extreme delay (9 months). Is that the exact string that your var_dump returns for that object?

blowsie commented 11 years ago

@alexnaspo sorry I can remember its been such along time.

XedinUnknown commented 9 years ago

Same problem. Complete page source:

array(1) {
  ["plugin|c"]=>
  object(WPRSS_Entity_Registry_Entity)#227 (4) {
    ["_registry":protected]=>
    object(Wprss_Registry)#228 (7) {
      ["_addon_entity":protected]=>
      NULL
      ["_entities":protected]=>
      *RECURSION*
      ["_entitiesByType":protected]=>
      array(1) {
        ["plugin"]=>
        array(1) {
          ["plugin|c"]=>
          *RECURSION*
        }
      }
      ["_entityTypeClassNames":protected]=>
      array(1) {
        ["addon"]=>
        string(27) "Wprss_Registry_Entity_Addon"
      }
      ["_data":protected]=>
      array(2) {
        ["default_entity_type"]=>
        string(5) "other"
        ["default_entity_class_name"]=>
        string(28) "WPRSS_Entity_Registry_Entity"
      }
      ["_idFieldName":protected]=>
      NULL
      ["_keyFields":protected]=>
      array(0) {
      }
    }
    ["_data":protected]=>
    array(5) {
      ["type"]=>
      string(6) "plugin"
      ["id"]=>
      string(1) "c"
      ["name"]=>
      string(10) "Categories"
      ["endpoint_url"]=>
      string(42) "http://abc.com"
      ["hash"]=>
      string(8) "plugin|c"
    }
    ["_idFieldName":protected]=>
    NULL
    ["_keyFields":protected]=>
    array(1) {
      ["type"]=>
      int(0)
    }
  }
}