Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Network
KIO Extras
Commits
128b8440
Commit
128b8440
authored
Nov 19, 2002
by
Waldo Bastian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some hints about how to get http debug output.
svn path=/trunk/kdebase/kioslave/; revision=189715
parent
bd7ee0b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
DEBUG.howto
DEBUG.howto
+24
-0
No files found.
DEBUG.howto
View file @
128b8440
This document describes how you can debug an io-slave with gdb.
How does an io-slave get started?
=================================
Your application request 'klauncher' via DCOP for a slave. If 'klauncher' does
not have an idle slave ready, it will ask kdeinit to start a new one.
kdeinit forks and dlopens the library that contains the io-slave.
Then it calls kdemain() or, if that is not present, main() in the library.
Attaching gdb to a io-slave
===========================
Due to the above sequence it is rather hard to get an io-slave in your
debugger. But wait there is hope. You can start klauncher in such a way
that slaves for a certain protocol are started in debug mode.
...
...
@@ -39,5 +44,24 @@ slave by typing 'continue'. The debugger will return immediate with a message
that a SIGSTOP has been received so you will have to type 'continue' a second
time.
How to get debug output
=======================
It is usefull to redirect the debug output of your particular slave to a file
instead of stderr. E.g. I myself use the following lines in
$KDEDIR/share/config/kdebugrc.
[7113]
InfoOutput=0
InfoFilename=/tmp/http
[7103]
InfoOutput=0
InfoFilename=/tmp/http
This redirects all debug info for areas 7103 and 7113 (as used by kio_http)
to the file /tmp/http.
Happy debugging.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment