VS 2005 Debug Problem

P

Pete Kane

Hello All, I'm having a problem debugging a project (contained in a solution containing eight other projects), whenever I set a
breakpoint and press F5, the solution rebuilds itself ok but I then receive a dialog box stating "The following module was built
either with optimizations enabled or without debug information" <name of errant module is here> To debug this module, change its
project build configuration to Debug mode. To suppress this message, disable the 'Warn if no user code on launch' debugger option."
The project is set to debug but I notice the pdb file is not being copied to the run directory i.e. \bin\debug. The reference to
this module is \bin\release\mydll.dll, but it is on all the other referenced projects, and their pdb files are copied over ok. Any
ideas ? I've tried everything I can find "googling" all to no avail, please help !
 
G

Guest

It sounds like you have added a reference to all other projects through
selecting them on the Projects tab of the add reference dialog whereas this
appears to be added by browsing to it. remove the reference and re-add on the
projects tab.

HTH

Ciaran O'Donnell
 
P

Pete Kane

you're spot on, thanks, what is the difference ?

It sounds like you have added a reference to all other projects through
selecting them on the Projects tab of the add reference dialog whereas this
appears to be added by browsing to it. remove the reference and re-add on the
projects tab.

HTH

Ciaran O'Donnell
 
G

Guest

When you add a reference to the project,. VS records the project id (a guid)
and then takes the latest output from the build, when you use the file, VS
always uses the file at that path, you must have added a reference to the
output from a previous release build.
Open the project file in a text editor and you should be able to spot the
diference between the references.

Ciaran O'Donnell
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top