Silverfrost Forums

Welcome to our forums

Specify input for debugging

15 Jan 2016 6:28 #17136

My application runs from the command line like this: MYAPP.exe IFILE, where IFILE is the path\name of the input file for this run. A legitimate IFILE is required; if it is missing, MYAPP prints an informative error message and STOPs. I would now like to run MYAPP from the IDE, specifically from the Silverfrost debugger.

How do I specify IFILE's name when I am debugging MYAPP.

15 Jan 2016 8:53 #17137

In the Plato IDE pick Project, then Properties ... Click the Miscellaneous category. Click Launch arguments and type the command line arguments in and click apply.

16 Jan 2016 3:08 #17138

The names of things are slightly different for the Microsoft IDE, but I found it OK and it should work. That had me very frustrated. Thanks so much!

16 Jan 2016 11:06 #17139

Stan,

If you run the following example in Plato, as a project it may help. I set the launch arguments under project > properties >miscellaneous as: 'aa /b/c file_name' and it reported as expected.

 Program get_run_options
!
      character option*128
      integer*4 i, num, iostat
!
      i = 0
      do 
         option = ' '
         num    = 0
         call get_command_argument (i, option, num, iostat)
         write (*,111) 'get_command_argument ',i,' : ',trim(option), num, iostat
         if (iostat /= 0 .and. i > 0) exit
         i = i+1
      end do
  111 format (a,i0,a,a,1x,i0,1x,i0)
!
  end Program get_run_options
16 Jan 2016 1:20 #17140

When running the debugger SDBG from a command line, you should provide the name of the executable file first then /params (or /p) and then the command line arguments for the executable.

19 Jan 2016 5:40 #17141

Thanks to all of you.
I've been using the debugger very successfully since the very first response from y'all.
Going forward, I'll fuss a little less with the Forum's archive in favor of posting my query a little earlier.

Please login to reply.