]> git.sur5r.net Git - i3/i3/blobdiff - docs/debugging
Bugfix: Repeatedly try to find screens if none are available (Thanks mxf)
[i3/i3] / docs / debugging
index 5dfd95ebed93e558e2781edb96119c6d8ab8a949..d32329d4e2d635a849a390f2ce8db6c51a340b44 100644 (file)
@@ -13,13 +13,13 @@ further help, do not hesitate to contact us!
 == Enabling logging
 
 i3 spits out much information onto stdout. To have a clearly defined place where logfiles
-will be saved, you should redirect stdout in xsession. While you’re at it, putting each
-run of i3 in a separate logfile with date/time in it is a good idea to not get confused
-about the different logfiles later on.
+will be saved, you should redirect stdout and stderr in xsession. While you’re at it,
+putting each run of i3 in a separate logfile with date/time in it is a good idea to not
+get confused about the different logfiles later on.
 
----------------------------------------------------------------
-exec /usr/bin/i3 >/home/michael/i3/i3log-$(date +'%F-%k-%M-%S')
----------------------------------------------------------------
+--------------------------------------------------------------------
+exec /usr/bin/i3 >/home/michael/i3/i3log-$(date +'%F-%k-%M-%S') 2>&1
+--------------------------------------------------------------------
 
 == Enabling coredumps
 
@@ -84,35 +84,9 @@ gdb $(which i3) core.i3.3849
 
 Then, generate a backtrace using:
 
----------
-backtrace
----------
-
-Also, getting an overview of the local variables might help:
------------
-info locals
------------
-
-If your backtrace looks like this:
----------------------------------------------------------------------------------------------------
-(gdb) backtrace
-#0  0x041b1a01 in vfprintf () from /lib/libc.so.6
-#1  0x041b2f80 in vprintf () from /lib/libc.so.6
-#2  0x080555de in slog (fmt=0x8059ba0 "%s:%s:%d - Name should change to \"%s\"\n") at src/util.c:60
-#3  0x0804fa73 in handle_windowname_change_legacy (data=0x0, conn=0x42da908,
-                  state=0 '\0', window=8389918, atom=39, prop=0x4303f90) at src/handlers.c:752
-#4  0x0406cace in ?? () from /usr/lib/libxcb-property.so.1
-#5  0x00000000 in ?? ()
----------------------------------------------------------------------------------------------------
-
-you need to find the first frame which actually belongs to i3 code. You can easily spot them, as
-their filename starts with src/ and has a line number. In this case, frame 2 would be the correct
-frame, so before getting the local variables, switch to frame 2:
-
------------
-frame 2
-info locals
------------
+--------------
+backtrace full
+--------------
 
 == Sending bugreports/debugging on IRC