[orca] Add more debugging
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add more debugging
- Date: Mon, 13 Feb 2017 13:06:20 +0000 (UTC)
commit c0f98c68f22951f1812724b34def751ec4d2b87f
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Feb 13 08:05:54 2017 -0500
Add more debugging
src/orca/scripts/web/script.py | 3 ++-
src/orca/scripts/web/script_utilities.py | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 1fb9b44..b16a752 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1600,7 +1600,8 @@ class Script(default.Script):
return True
obj, offset = self.utilities.getCaretContext()
- msg = "WEB: Caret context is %s, %i" % (obj, offset)
+ msg = "WEB: Caret context is %s, %i (focus: %s)" \
+ % (obj, offset, orca_state.locusOfFocus)
debug.println(debug.LEVEL_INFO, msg, True)
if obj and self.utilities.isZombie(obj):
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index c4de59f..c2129b7 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1343,7 +1343,8 @@ class Utilities(script_utilities.Utilities):
if obj is None:
obj, offset = self.getCaretContext()
- msg = "WEB: Current context is: %s, %i" % (obj, offset)
+ msg = "WEB: Current context is: %s, %i (focus: %s)" \
+ % (obj, offset, orca_state.locusOfFocus)
debug.println(debug.LEVEL_INFO, msg, True)
if obj and self.isZombie(obj):
@@ -1388,7 +1389,8 @@ class Utilities(script_utilities.Utilities):
if obj is None:
obj, offset = self.getCaretContext()
- msg = "WEB: Current context is: %s, %i" % (obj, offset)
+ msg = "WEB: Current context is: %s, %i (focus: %s)" \
+ % (obj, offset, orca_state.locusOfFocus)
debug.println(debug.LEVEL_INFO, msg, True)
if obj and self.isZombie(obj):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]