Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Debugging a .dll with Insure++

LegacyForum
LegacyForum Posts: 1,664 ✭✭
edited December 2016 in Insure++
You will need to debug the process in which that the dll actually runs. If you know the name of the executable that loads the dll, and can run that executable by hand, the simplest approach is to simply run that executable under InsureSpy.exe, inject.exe, or Visual Studio's debugger by clicking "Insure++ Debug" within Visual Studio.

e.g.
> InsureSpy apache.exe

If the executable in question is started through NT services (e.g. IIS), or in some other way which is out of your control, see the "Adapting Insure++ Usage to Different Environments and Needs" section of the Insure++ manual. Prior to Insure++ 7.0, this section of the manual was called "Usage Options".

Also, if you are specifically debugging an ISAPI dll, see the post titled "Debugging an ISAPI dll" in the "Tips and Tricks" Insure++ forum.

Comments

  • LegacyForum
    LegacyForum Posts: 1,664 ✭✭
    You cannot attach to a running process with Insure++. The process must be started under the Insure++ debugger (InsureSpy.exe, inject.exe, or the "IntegratedSpy" inside of Visual Studio [the Insure++ Debug button]).

    If you do not know the process in which your dll loads, try using ProcessExplorer.exe from sysinternals.com.
  • [Deleted User]
    [Deleted User] Posts: 0

    "You cannot attach to a running process with Insure++."

    Attaching to processes is now possible with Insure++ v2021.