changeset 175:2c87e18ace33

gdb and docker
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 03 Dec 2018 13:38:00 +0100
parents 1e9764acdf95
children 01684f60a8ba
files Sphinx/source/users/docker.rst
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Sphinx/source/users/docker.rst	Sat Nov 24 13:18:02 2018 +0000
+++ b/Sphinx/source/users/docker.rst	Mon Dec 03 13:38:00 2018 +0100
@@ -191,3 +191,11 @@
 
   $ sudo docker run -i -t --rm --entrypoint=bash jodogne/orthanc
   $ sudo docker run -i -t --rm --entrypoint=bash jodogne/orthanc-plugins
+
+For developers, the images ``jodogne/orthanc-debug`` contain the
+Orthanc core compiled in debug mode (with runtime assertions enabled,
+and including debugging symbols). A ``gdb`` session can be started as
+follows::
+
+  $ sudo docker run -i -t --rm --entrypoint=bash --cap-add=SYS_PTRACE -p 4242:4242 -p 8042:8042 orthanc-debug
+  # gdb --args Orthanc /etc/orthanc/