Silverfrost Logo About Us | Contact Us
 

Scripts

When using SDBG you can press Ctrl+P and enter a command directly into the debugger. These commands are approximately equivalent to the operations you can carry out with the mouse and menus in SDBG. In addition you can also join several of these commands together to produce a script. There are three ways to run a script:

1. You can execute the 'script' command from the command line. This will load the file specified and execute the commands.

2. You can specify a script on the debugger command itself. You use the /script option for this. A .script file extension will be assumed for the script. For example:

sdbg myprogram /script runtoproblem

3. You can specify the script as text on the debugger command. You use the vertical bar character to separate commands. This allows simple scripts to be run without creating a file. The /scriptis option is used to do this. For example:

sdbg myprogram /scriptis "getto mod1.f90 3456|print flow(7)"

You should enclose you script in quotes so that spaces can be used. You should note that the TYPE operator '%' should not be used on the command line as it can be confused with a DOS macro, use the C style '.' instead. For example:

sdbg myprogram /scriptis "breakpoint mod1.f90 12 6|go|print glob.flux"

 

 

Copyright © 1999-2017 Silverfrost Limited