VS 2005 Debug Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pete Kane

    #1

    VS 2005 Debug Problem

    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\my dll.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

    #2
    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:
    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\my dll.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 !
    >

    Comment

    • Pete Kane

      #3
      Re: VS 2005 Debug Problem

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


      Ciaran O''Donnell wrote:
      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:
      >
      >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\my dll.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 !
      >>

      Comment

      • Ciaran O''Donnell

        #4
        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:
        you're spot on, thanks, what is the difference ?
        >
        >
        Ciaran O''Donnell wrote:
        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:
        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\my dll.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 !
        >
        >

        Comment

        Working...