Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Debugger Question

Status
Not open for further replies.

phxcoyotes097

Programmer
Feb 19, 2003
16
US
I have the following code and need to be able to "step into" the next program using debugger. Do anyone know how to do this? This is not a fuction within the current program.

LET f_cmd = ""
LET f_cmd = "nohup SFDlopro01.4ge \"",
f_rpt_file CLIPPED, "\" \"",
f_rpt_prof_id USING &quot;<<<<<<<<<&&quot;, &quot;\&quot; &quot;,
m_rpt.dc_id, &quot; &quot;,
m_rpt.whse_id, &quot; \&quot;&quot;,
m_rpt.bloc_id, &quot;\&quot; \&quot;&quot;,
m_rpt.eloc_id, &quot;\&quot; \&quot;&quot;,
m_rpt.lcat_id, &quot;\&quot; \&quot;&quot;,
m_rpt.bprod_id, &quot;\&quot; \&quot;&quot;,
m_rpt.eprod_id, &quot;\&quot; \&quot;&quot;,
m_rpt.prodclass_id, &quot;\&quot; \&quot;&quot;,
m_rpt.order_by USING '&', &quot;\&quot; \&quot;&quot;,
f_rpt_file CLIPPED, &quot;\&quot; \&quot;&quot;,
f_rpt_prof_id USING &quot;<<<<<<<<<&&quot;, &quot;\&quot; &quot;,
&quot; > /dev/null 2>&1 &&quot;

CALL run_system_cmd(f_cmd)
 
Ken:

Sorry, but the debugger doesn't support stepping into a sub-program.

Regards,

Ed
 
How can I get the parms over to the 01.4gl program and still use debug??

 
Ken:

I hope I'm not elaborating on the obvious, but here's some comments:

I identify run_system_cmd as 4GL function where ultimately you do something like this:

RUN f_cmd

1) Set a break point in run_system_cmd before the RUN executes. You can look at the value of f_cmd.

2) Since you're nohuping and the subprogram doesn't write to standard output, the subprogram should execute properly.

3) If you want to look at the string the way shell interprets it, you might try echoing f_cmd to an ascii file:

RUN &quot;echo \&quot;f_cmd\&quot; > /tmp/f_cmd.txt&quot;
(above command untested)

In conclusion, your nohuped subprogram appears to be a compiled 4GL program. If your goal is to debug it, you need to compile it to RDS and debug it separate from the calling program.

Sorry, but I probably haven't told you anything you've wanted to hear.

Regards,

Ed
 
Yea, I was hoping you could shine some new light on this problem. I'm currently debugging it separately right now.

Thanks anyway,
Ken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top