Start Debugging a DLL or Shared Library

You can debug a DLL or Shared Library in the VisualAge C++ Integrated Development Environment the same way you debug executables. Follow these steps to set breakpoints in DLL or Shared Library functions so that execution stops when your DLL or Shared Library is called:

  1. From the Debug page of the Project tab, start the program running under debug control.
  2. Select the Debug page of the Project tab again. In the Debuggable Processes view, expand the process you started.
  3. Expand the module entry for the process.
  4. Expand the DLL or Shared Library module you want to debug.
  5. Expand the Exported Symbols section for the DLL or Shared Library.
  6. For each function you want to set a breakpoint on, click mouse button 2 over the function name and choose Set Function Breakpoint from the popup menu.
  7. If the DLL or Shared Library is not part of the current codestore, the exported symbols list does not include functions. Instead, a link symbol is shown for the mangled name of each function. To set an instruction breakpoint on the entry point to such a function, click mouse button 2 over the address shown for the function, and select Set Instruction Breakpoint.
  8. If you do not want to stop in main, disable the Entry point main breakpoint in the Breakpoints view.
  9. Run your program. Execution stops in the first DLL or Shared Library function called by your program.


Disable Breakpoints
Run a Program Under Debug Control
Set a Function Breakpoint
Set an Instruction Breakpoint
Start a Program Under Debug Control