Cannot debug ISAPI DLLs after installing SP2

  • Thread starter Thread starter Rob Roberts
  • Start date Start date
R

Rob Roberts

I apologize if this isn't the best newsgroup for this question. (If it
isn't, please let me know which one to use.)

I use Delphi 7 on Windows XP to develop ISAPI DLLs (among other things).
Before installing SP2, I was able to debug my ISAPI DLLs in the Delphi IDE
by using IIS on the local machine. (Details of how this is done are here:
http://www.msdelphi.com/default.htm.) I could set breakpoints in the source
code and have execution stop at them. All the usual debugging stuff.

But after installing SP2, the breakpoints no longer work. Execution does
not stop at them. Is there some setting I can change to get debugging
working again?

Thanks,
--Rob Roberts
 
Someone finally came up with a solution to this problem and posted it on one
of the Borland newsgroups. In case others are looking for the solution,
here it is:

Add \\?\ to the beginning of the "Output directory" path in Project Options.
For example, if the output directory you are using is
C:\Inetpub\wwwroot\cgi-bin, simply change it to
\\?\C:\Inetpub\wwwroot\cgi-bin. Debugging will be back to normal.
Execution will stop at your breakpoints and bring them up in the IDE just
like it's supposed to. (I have no idea why this works, but it does.)

--Rob Roberts
 
Back
Top