<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>(adding sr-dev to CC)</p>
<p>Hello Ali,</p>
<p>have a look to the kamailio binary parameter and the children parameter in configuration. You can actually start kamailio with (almost) no forking.</p>
<p>You will get a lot of debugging information if you enable the kamailio debugging in the cfg.
<br>
</p>
<p>If you want to debug only the internals of the core or a specific Kamailio module, there is also a debugger module available that can be useful to debug only certain parts of the server. You can also set breakpoints at certain points in the cfg, or dump
 internal state with it.<br>
</p>
<p>Cheers,</p>
<p>Henning<br>
</p>
<p><br>
</p>
<p>Am 23.07.19 um 11:39 schrieb Ali Shirvani:<br>
</p>
<blockquote type="cite" cite="mid:CAFQ97XEa0xa5n7XjwAP4-Qc+zyU4jpm_3KNLu=8thss6TRzReg@mail.gmail.com">
<div dir="ltr">Hi all,
<div><br>
</div>
<div>I want to trace function calls in a kamailio module, e.g. ims_isc module. I installed kamailio-dbg package and started the kamailio with gdb: `gdb kamailio` I also set break point on target function, but it seems gdb doesn't stop on that break point.</div>
<div><br>
</div>
<div>How should I start gdb and set break points? it seems gdb couldn't handle kamailio child processes that forked in start.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Ali</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">-- 
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://skalatan.de/services">https://skalatan.de/services</a></pre>
</body>
</html>