ChrisCarroll
Programmer
- Oct 10, 2000
- 177
I am tasked with debugging a process, written 6 years ago, which no longer works.
It is an executable called from a shell script with an environment set up by a shell script called from a function in a series of shell scripts that implement a batch processor : so it's a nest of scripts that I've spend 2 weeks working through and still haven't entirely worked out.
It would all be so much easiser if I had the normal tools of an application debugger : single step; source code view; breakpoints ; and so on.
For instance: I define a parameter file:
ParamFile=/usr/users/...
and then launch. But the process halts saying
ParamFile=/user/users/.... can't be found.
I have no idea how '/usr/users' got turned into '/user/users'. If only I could set a breakpoint.
But all I've got is #!/bin/sh -x
Is there anything better out there?
Chris
It is an executable called from a shell script with an environment set up by a shell script called from a function in a series of shell scripts that implement a batch processor : so it's a nest of scripts that I've spend 2 weeks working through and still haven't entirely worked out.
It would all be so much easiser if I had the normal tools of an application debugger : single step; source code view; breakpoints ; and so on.
For instance: I define a parameter file:
ParamFile=/usr/users/...
and then launch. But the process halts saying
ParamFile=/user/users/.... can't be found.
I have no idea how '/usr/users' got turned into '/user/users'. If only I could set a breakpoint.
But all I've got is #!/bin/sh -x
Is there anything better out there?
Chris