[orca] Add debugging details
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add debugging details
- Date: Thu, 30 Apr 2020 20:40:35 +0000 (UTC)
commit ae0aa8f9a490b976222ddd400b245ed4bfa79497
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Apr 30 16:34:06 2020 -0400
Add debugging details
src/orca/scripts/web/script_utilities.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index c63ad83a7..94a4c9147 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1537,13 +1537,15 @@ class Utilities(script_utilities.Utilities):
for i, (acc, start, end, string) in enumerate(contents):
indent = " " * 8
try:
+ description = acc.description
extents = self.getExtents(acc, start, end)
except:
+ description = "(exception)"
extents = "(exception)"
states = debug.statesToString(acc, indent)
attrs = debug.attributesToString(acc, indent)
- msg = " %i. %s (chars: %i-%i) '%s' extents=%s\n%s\n%s" % \
- (i, acc, start, end, string, extents, states, attrs)
+ msg = " %i. %s (chars: %i-%i) '%s' extents=%s description=%s\n%s\n%s" % \
+ (i, acc, start, end, string, extents, description, states, attrs)
debug.println(debug.LEVEL_INFO, msg, True)
def treatAsEndOfLine(self, obj, offset):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]