Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 29th, 2006, 10:30 AM
Friend of Wrox
Points: 2,876, Level: 22
Points: 2,876, Level: 22 Points: 2,876, Level: 22 Points: 2,876, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default Can't Debug Windows App?

I am converting an old 1.1 .NET Windows application to 2.0. When I try to build it, VS 2005 says:

The following module was built either with optimizations enabled or without debug information...

...To debug this module, change its project build configuration to Debug mode. blah blah blah...

I have set teh configuration to DEBUG. I also verified that Optimizations are not enabled. But I still get this message and debugging is disabled, which means I cannot insert breakpoints, etc. This is making debugging unnecessarily painful.

So what else do I have to do to be able to debug my code?
Reply With Quote
  #2 (permalink)  
Old March 29th, 2006, 05:19 PM
Friend of Wrox
Points: 2,876, Level: 22
Points: 2,876, Level: 22 Points: 2,876, Level: 22 Points: 2,876, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

I have resolved this problem, although I never could enable debugging in the converted project. Instead, I created a new project in 2005 and imported all my converted code modules. I had to go through the same thing to convert one of my web projects, so it was no surprise, but the inability to debug a converted project points to a serious deficiency in the conversion wizard.

Hello, Microsoft, are you listening?!?!?
Reply With Quote
  #3 (permalink)  
Old January 19th, 2007, 06:10 PM
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Go to the project in question (the one in the error message).

Go to

Project Properties.
Build.
Find the "Advanced" button in the bottom right.
Click and it will open "Advanced Build Settings".
Under "Output" change "Defug Info" to "full".

The issue is that the .pdb files are being copied to the /debug/bin directory of the "start up" project or webpage.



Reply With Quote
  #4 (permalink)  
Old January 29th, 2007, 05:53 PM
Registered User
 
Join Date: Jul 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have similar problem. I am using VS 2005. In the past the debugger worked ok. I created a new project, I can see that pdb file was generated but for some reason in Release folder. I could not add any Break point(F9 does not work), F5 does not work eather, I don't see debug menu at all. Could you please help me?

Reply With Quote
  #5 (permalink)  
Old January 30th, 2007, 09:53 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I wouldn't expect a PDB file to show up in the release folder after a compile. But aside from that, it sounds like you are compiling in release mode which would cause problems. Check your build configuration and change it back to debug and you should then be able to launch with the debugger.

-Peter
Reply With Quote
  #6 (permalink)  
Old November 30th, 2007, 05:20 PM
Registered User
 
Join Date: Nov 2007
Location: , TX, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Take a look in your Windows\Assembly folder for a matching dll with MSIL in the Processor Architecture column. Apparently, items in this folder are not always flushed OR if you have added a Release version of one of your components to the GAC, the GAC one overrides the local one. Anyway, removing this and rebuilding the project worked for me.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how we debug a windows service? cookie2007 Visual Studio 2005 1 October 20th, 2007 06:51 AM
How can i debug my web/windows application? vijaykumartaduri ASP.NET 2.0 Professional 1 March 20th, 2007 06:40 AM
Accessing Windows service from a windows app sajid08 C# 1 October 6th, 2006 10:25 AM
datagrids (windows app) bazookajoe76 C# 0 February 11th, 2005 11:24 AM
links in a windows app jeffruth VB.NET 2002/2003 Basics 1 April 26th, 2004 04:08 PM



All times are GMT -4. The time now is 03:27 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.