Connecting Tech Pros Worldwide Forums | Help | Site Map

VS 2005 Debug Problem

Pete Kane
Guest
 
Posts: n/a
#1: Nov 8 '06
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 hereTo 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 !

Ciaran O''Donnell
Guest
 
Posts: n/a
#2: Nov 8 '06

re: VS 2005 Debug Problem


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

"Pete Kane" wrote:
Quote:
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 hereTo 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 !
>
Pete Kane
Guest
 
Posts: n/a
#3: Nov 8 '06

re: VS 2005 Debug Problem


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


Ciaran O''Donnell wrote:
Quote:
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
>
"Pete Kane" wrote:
>
Quote:
>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 hereTo 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 !
>>
Ciaran O''Donnell
Guest
 
Posts: n/a
#4: Nov 8 '06

re: VS 2005 Debug Problem


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

"Pete Kane" wrote:
Quote:
you're spot on, thanks, what is the difference ?
>
>
Ciaran O''Donnell wrote:
Quote:
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

"Pete Kane" wrote:
Quote:
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 hereTo 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 !
>
>
Closed Thread


Similar C# / C Sharp bytes