Satya Prasad wrote:
> Apart from writing debug and statements in constructors is there any way by 
> which we can trace the function call stack at any depth?
> 
> The issue that we always face is that when program crashes (Web Server 
> running on Linux) we have no idea where it crashes and we have to do the hard 
> way of debugging.
> 
> Is there any library / extra code that we can include and that can output the 
> function flow in a program given a scenario.
> 
> Sorry I tired a lot of programs but without extra debugging (followed by 
> compilation) we are not sure where the code flows. If it gives us the line 
> number that would be more perfect.
> 
> Thanks in advance
>  
> Regards,
> Prakash

If it is crashing right away upon startup, you could try 
strace/ltrace/etc. to give you a general idea of where the problem lies.

If not and it is "random", then it may be nigh impossible to find the 
bug.  Not sure if you want to run a debug version of a web server in a 
production environment, but you might have to in order to pinpoint the 
problem.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to