If you are in the Statement view of a section of code, you may
find that you cannot obtain a Source or Listing view of your code. There are
several likely reasons for such problems:
- The code you are debugging was not compiled with the debug options to
generate a Source or a Listing view.
- The debugger is finding a different version of the program than the one
you compiled with the appropriate options.
- The code you are debugging was compiled with the appropriate debug information,
but the debugger cannot locate the source code. If you try to switch to a
Source view in this situation, the Source not available dialog box opens so
that you can enter the path of the source file. If you select Cancel,
the view remains a Statement view.
- The code you are debugging was not compiled with the appropriate compiler
options to generate a Source or Listing view, because it is not code you wrote,
but code in a service program or other program that your program uses.