longjmp never returns

Hi

   I am using setjmp and longjmp in a deeply nested functions BUT longjmp is not returning\(hanging in longjmp\)

  How can I debug this issue. I could not cut and paste the code due to its size and it is chained with  other programs.

  Is there any way to trace where the control is?

Any pointers pls

Hi
I found the problem. Actually longjmp is taking a correct jump BUT

dbx is not displaying the control step by step, which I don't know the reason.

longjmp blows away all of the intervening stack pointers between it and setjmp.
There is no intervening information - the stack frames and SP's are gone, a lot like they never happened.