Debug Newbie - pass executable Std. Input within pgdbg

Hi,

I am very new to coding and debugging. I searched a bit online for a solution to my problem but was unable to find a solution.

I want to debug a piece of code that I launch with command line input parameters read-in (see below). I tried a variety of approaches but was not able to successfully launch pgdbg for gasbetaf90.x with the input parameters included.

How do I launch the PG debugger for the program gasbetaf90.x with the input parameters included?

Thank you for any input!

–Luke

./gasbetaf90.x << EOF
gasbetaf90.inp
20130821.ch2o.part
20130821.ch2oext.part
sao2010.solref.ch2o
sao2010.solref.ch2o
ring4gomech2o.interf.out
  1.d12, f, 1.d0
o3_221.vac.new.ch2o
  1.d21, f, 1.d0
ch2o_300_Cantrell.ch2o
  1.d20, f, 1.d0
no2r_97.nm.ch2o
  1.d18, f, 1.d0
bro228.10cm.ch2o
  1.d17, f, 1.d0
O4_294K_BISA.ch2o
  1.d5, f, 1.d0
O4_294K_BISA.ch2o.2
  1.d5, f, 1.d0
res.bro228_10cm.boas
  1.d0, f, 1.d0
EOF

I’d probably put the data into a file (say, input.dat), load the program into the debugger, bring up the command prompt window, and after setting my breakpoints or whatever, enter

run < input.dat

You can also use the menus to set up your command line arguments if you want to avoid the command prompt window.