[orca] Add more debugging output



commit 23279e36b61855a263ea8c53bd3b707b3bf65e8e
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Sep 2 23:03:29 2016 -0400

    Add more debugging output

 src/orca/script_utilities.py |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 799809b..cb7964b 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -3458,11 +3458,20 @@ class Utilities:
             try:
                 component = root.queryComponent()
             except:
+                msg = "ERROR: Exception querying component of %s" % root
+                debug.println(debug.LEVEL_INFO, msg, True)
                 child = None
             else:
                 child = component.getAccessibleAtPoint(x, y, coordType)
+                msg = "INFO: %s is at (%s, %s) in %s" % (child, x, y, root)
+                debug.println(debug.LEVEL_INFO, msg, True)
+
                 if child and child != root:
-                    return self.descendantAtPoint(child, x, y, coordType)
+                    cell = self.descendantAtPoint(child, x, y, coordType)
+                    msg = "INFO: %s is at (%s, %s) in %s" % (cell, x, y, child)
+                    debug.println(debug.LEVEL_INFO, msg, True)
+                    return cell
+
                 return None
 
         for child in root:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]