anatoly techtonik avatar anatoly techtonik committed 0f678f6

at least didn't crash

Comments (0)

Files changed (2)

wxdebuglib/analyzer.py

             root['stack'] += self.profile.main['stack']
             self.profile.stack = [root,[[self.profile.main, self.profile.stack]]]
         else:
-            # root['stack'] = self.profile.stack
-            pass # self.profile.stack = [root,[[self.profile.stack]]]
+            root['stack'] += self.profile.stack
+            self.profile.stack = [root, [[self.profile.stack]]]
         
         # TODO - check profile where nothing happened (no PHP fn calls)...
         # self.profile.stack = []

wxdebuglib/gui/calltree.py

 import wx
 import os.path
+import logging
+
+logging.basicConfig(level=logging.DEBUG)
+
+
 from profile import Profile
 
 class Calltree(wx.TreeCtrl):
         i = 0
         
         if not type(payload['children']) == list: return
-        
+        logging.debug("---")
         for item in payload['children']:
             if type(item) == dict:
+                logging.debug("dict")
                 newItem = self.AppendItem(parentItem, item['name'])
                 newPayload = {'self': item, 'children': [], 'called': payload['self']['stack'][i]}
                 self.SetItemPyData(newItem, newPayload)
             else:
+                logging.debug("list")
+                #import pdb; pdb.set_trace()
+
                 newItem = self.AppendItem(parentItem, item[0]['name'])
                 newPayload = {'self': item[0], 'children': item[1], 'called': payload['self']['stack'][i]}
                 # May need a lazy list - looks like SetItemPyData has issues with big datasets
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.