changeset 184:f6216b3271c0

gdb
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Jan 2019 08:39:01 +0100
parents e48ed865e8cd
children 6fd3eae67f6a
files Sphinx/source/users/docker.rst
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Sphinx/source/users/docker.rst	Fri Jan 18 19:25:59 2019 +0100
+++ b/Sphinx/source/users/docker.rst	Mon Jan 21 08:39:01 2019 +0100
@@ -202,6 +202,10 @@
   $ sudo docker run -i -t --rm --entrypoint=bash --network=host --cap-add=SYS_PTRACE -p 4242:4242 -p 8042:8042 jodogne/orthanc-debug
   # gdb --args Orthanc /etc/orthanc/ --verbose
 
+Exceptions can be automatically caught by launching ``gdb`` as follows::
+
+  # gdb --ex 'catch t' --ex r --ex bt --args ./Orthanc /etc/orthanc/ --verbose
+ 
 Note that:
 
 * The plugins are not available in this image yet.