[orca] More debugging output
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] More debugging output
- Date: Thu, 18 Feb 2021 16:35:40 +0000 (UTC)
commit 11095d102ee6b00f2e9a4a0dcad0b2f1468896ec
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Feb 18 14:49:36 2021 +0100
More debugging output
configure.ac | 3 +++
src/orca/orca.py | 5 ++++-
src/orca/orca_platform.py.in | 4 ++++
src/orca/scripts/web/script.py | 6 ++++++
4 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/configure.ac b/configure.ac
index 9b603d11e..614d8912e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,6 +64,9 @@ if test x$louis_available = "xyes"; then
fi
AC_SUBST(LOUIS_TABLE_DIR)
+REVISION=`git rev-parse --short HEAD 2> /dev/null`
+AC_SUBST(REVISION)
+
dnl Check for the OS. On *Solaris systems the PATH must be set
PLATFORM=`uname -a`
case "${PLATFORM}" in
diff --git a/src/orca/orca.py b/src/orca/orca.py
index ac80dd0b9..2fe0a0bf2 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -769,7 +769,10 @@ def main(cacheValues=True):
an exit code of 0 means normal completion and an exit code of 50
means Orca exited because of a hang."""
- debug.println(debug.LEVEL_INFO, "ORCA: Launching (main).", True)
+ msg = "ORCA: Launching version %s" % orca_platform.version
+ if orca_platform.revision:
+ msg += " (rev %s)" % orca_platform.revision
+ debug.println(debug.LEVEL_INFO, msg, True)
if debug.debugFile and os.path.exists(debug.debugFile.name):
faulthandler.enable(file=debug.debugFile, all_threads=True)
diff --git a/src/orca/orca_platform.py.in b/src/orca/orca_platform.py.in
index e801583e1..72a6c842e 100644
--- a/src/orca/orca_platform.py.in
+++ b/src/orca/orca_platform.py.in
@@ -30,6 +30,10 @@ __license__ = "LGPL"
#
version = "@VERSION@"
+# The revision if built from git; otherwise an empty string
+#
+revision = "@REVISION@"
+
# "--prefix" parameter used when configuring the build.
#
prefix = "@prefix@"
diff --git a/src/orca/scripts/web/script.py b/src/orca/scripts/web/script.py
index 19da8f027..d6c0165a8 100644
--- a/src/orca/scripts/web/script.py
+++ b/src/orca/scripts/web/script.py
@@ -1576,6 +1576,9 @@ class Script(default.Script):
return True
if self._lastCommandWasMouseButton:
+ msg = "WEB: Last command was mouse button"
+ debug.println(debug.LEVEL_INFO, msg, True)
+
if (event.source, event.detail1) == (obj, offset):
msg = "WEB: Event is for current caret context."
debug.println(debug.LEVEL_INFO, msg, True)
@@ -1598,6 +1601,9 @@ class Script(default.Script):
return True
if self.utilities.lastInputEventWasTab():
+ msg = "WEB: Last input event was Tab."
+ debug.println(debug.LEVEL_INFO, msg, True)
+
if self.utilities.isDocument(event.source):
msg = "WEB: Event ignored: Caret moved in document due to Tab."
debug.println(debug.LEVEL_INFO, msg, True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]