4 ms·
What type of setup do you use to analyze, debug, and follow the code? Any tips on getting started with module development?
by powertower 16y ago
What type of setup do you use to analyze, debug, and follow the code?
Any tips on getting started with module development?
- brianm 16y agoAnother apache hacker answering :-) I use emacs and gdb to muck around the code. Apache has a lot of backwards compat warts with regard to which header files define things, unfortunately, but grep (or ack) and ctags will get you around. The best way (by far) to learn about module hackery is with Nick Kew's book, http://www.amazon.com/Apache-Modules-Book-Application-Development/dp/0132409674 http://www.amazon.com/Apache-Modules-Book-Application-Develo...
- bnoordhuis 16y agoAnother vote for Nick Kew's book. He is a regular poster on the modules-dev mailing list[1], by the way. `httpd -X` and `gdb httpd $(pidof httpd)` are a great help when debugging. [1] http://mail-archives.apache.org/mod_mbox/httpd-modules-dev/ http://mail-archives.apache.org/mod_mbox/httpd-modules-dev/