Oh hell, sounds like I'm in deep do-do.

 

Integrated debugging is checked on, and I compared all boxes on compiler, linker and debugger, with our other Delphi developer, and mine are the same as hers. She can do debugging fine, but she is on NT. I also had no problems until moving on to XP (yesterday).

 

I was working on my project, on NT, the day before yesterday. Yesterday I went on to XP. Today I re-loaded the same project, and debugging won't work. Seems like it must be XP or my Delphi install, as I had to re-install Delphi 6 on my new machine.

 

I have deleted all DCUs, etc. with no luck. I've compared dof, cfg & dsk files between the project I've been mucking around with, and one that hasn't been touched since I went on to XP. Both sets of files looked consistently the same sort of thing.

 

All our dlls run from the server. There is a menu.exe on the server, which is used to run the dlls. My dll resides in x:\dev_mnu - at least this is a short name (good, considering Myles advice). The menu.exe resides in the same directory as the dll. The menu, project name and directory name, all have no spaces in them.

 

Any more ideas out there? Thanks for the suggestions already made.

 

Cheers

Dave

 

 

 

-----Original Message-----
From: Conor Boyd [mailto:[EMAIL PROTECTED]
Sent:
Thursday, 6 March 2003 10:37AM
To: Multiple recipients of list delphi
Subject: RE: [DUG]: Getting breakpoints working properly

 

We've had issues with debugging DLLs on XP and W2K as well.

 

Stacey is correct in saying that all debug options should be checked first and foremost.

 

One workaround we've used seems to rely on the fact that Windows seems to prefer your DLL to be in the Windows\System directory.  You can set the Output directory of your project to put it there automatically.

 

Once you've run your DLL (and presumably your host app has opened), go back to Delphi and hit Ctrl+Alt+M (I think).  This should open a window showing you which modules are loaded.  Find yours, and see if the entry points for all your functions are listed.  They should be if Delphi is correctly finding the debug information for your DLL.

 

If you're still having problems, drop me a line, and I'll see if we had to do anything else.

 

HTH,

 

Conor

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 

Hi, just moved to a new machine with XP (was on NT). Re-installed Delphi 6 and now breakpoints don't work! If I breakpoint a line (red dot), and then run the project, it's as though it runs a different version, as the "blue balls" don't appear in the source margin and the breakpoints never execute. (Breakpoints don't go the disabled colour either).

·         the breakpoints are on obvious places that have to execute, like form create

·         I've re-built the project a number of times, & blue balls appear, but go when I run the project and don't return.

·         I've deleted all files except .pas, .dpr and .dfm, and rebuilt project - still no luck

·         I've checked that the dll is being created in the directory I expect and that it definitely runs that dll (not another one created elsewhere)

·         I've loaded another project and re-built, to see if all projects are effected - breakpoints didn't work on this one either

 

Are there some compiler, linker or debugger options, that must be on, in order for breakpoints to work? (they are at their default install settings at present)

Reply via email to