Opening Files

If you did not invoke DDD specifying a program to be debugged, you can use the File menu to open programs, core dumps and sources.

  • Opening Programs: How to open a program for debugging.
  • Opening Core Dumps: Analyze a previous crash.
  • Opening Source Files: Open a source file of the program.
  • Filtering Files: DDD only lists matching files.

Node:Opening Programs, Next:Opening Core Dumps, Up:Opening Files

Opening Programs

To open a program to be debugged, select File => Open Program.10 Click on Open to open the program

In JDB, select File => Open Class instead. This gives you a list of available classes to choose from.

PICS/ddd-open.jpg

To re-open a recently debugged program or class, select File => Open Recent and choose a program or class from the list.

If no sources are found, See Source Path, for specifying source directories.

Node:Opening Core Dumps, Next:Opening Source Files, Previous:Opening Programs, Up:Opening Files

Opening Core Dumps

If a previous run of the program has crashed and you want to find out why, you can have DDD examine its Illegal HTML tag removed : core dump.11

To open a core dump for the program, select File => Open Core Dump. Click on Open to open the core dump.

Before Open Core Dump, you should first use File => Open Program to specify the program that generated the core dump and to load its symbol table.

Node:Opening Source Files, Next:Filtering Files, Previous:Opening Core Dumps, Up:Opening Files

Opening Source Files

To open a source file of the debugged program, select File => Open Source.

  • Using GDB, this gives you a list of the sources used for compiling your program.
  • Using other inferior debuggers, this gives you a list of accessible source files, which may or may not be related to your program.

Click on Open to open the source file. See Source Path, if no sources are found.

Node:Filtering Files, Previous:Opening Source Files, Up:Opening Files

Filtering Files

When presenting files to be opened, DDD by default filters files when opening execution files, core dumps, or source files, such that the selection shows only suitable files. This requires that DDD opens each file, which may take time. See Customizing File Filtering, if you want to turn off this feature.

Node:Looking up Items, Next:Customizing Source, Previous:Opening Files, Up:Navigating

results matching ""

    No results matching ""