28.4. How is SCons Constructing the Command Lines It Executes? the `--debug=presub` Option
Prev | Chapter 28. Troubleshooting | Next

## 28.4. How is SCons Constructing the Command Lines It Executes? the `--debug=presub` Option

Sometimes the command lines that SCons executes don't come out looking as you expect. In this case it may be useful to look at the strings before SCons performs substitution on them. This can be done with the `--debug=presub` option:

    % scons -Q --debug=presub
    Building prog.o with action:
      $CC -o $TARGET -c $CFLAGS $CCFLAGS $_CCOMCOM $SOURCES
    cc -o prog.o -c -I. prog.c
    Building prog with action:
      $SMART_LINKCOM
    cc -o prog prog.o

Prev | Up | Next
28.3. What Dependencies Does SCons Know About? the `--tree` Option | Home | 28.5. Where is SCons Searching for Libraries? the `--debug=findlibs` Option