Hi guys,
I am trying to develop some module for Kamailio but since I am not that experienced with C and plain GDB you can understand that I am having troubles with debugging while developing.
Right now I am getting feedback just from compiler and good old debug messages in Kamailio's log.
What if I want another level of debugging? For example step by step debugging? It is even possible for the project of the Kamailio's size?
If you have any experiences with debuging Kamailio please share it with me. Or maybe if there is some resource which I can study.
Thanks in advance
Hello,
On 13/04/15 00:15, Cockhootec Yahrabee wrote:
Hi guys,
I am trying to develop some module for Kamailio but since I am not that experienced with C and plain GDB you can understand that I am having troubles with debugging while developing.
Right now I am getting feedback just from compiler and good old debug messages in Kamailio's log.
What if I want another level of debugging? For example step by step debugging? It is even possible for the project of the Kamailio's size?
If you have any experiences with debuging Kamailio please share it with me. Or maybe if there is some resource which I can study.
writing logs is the common debugging I do. Otherwise, you can use any debugger available for linux, best are the ones with support for multiprocessing. Perhaps the best is to start kamailio with children=1 and attach to the sip worker process (see output of kamctl ps).
For debugging kamailio.cfg, besides xlog, debugger module has plenty of options.
Cheers, Daniel