Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 29th, 2006, 10:30 AM
Friend of Wrox
 
Join Date: Jun 2003
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?
 
Old March 29th, 2006, 05:19 PM
Friend of Wrox
 
Join Date: Jun 2003
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?!?!?
 
Old January 19th, 2007, 06:10 PM
Registered User
 
Join Date: Jan 2007
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.



 
Old January 29th, 2007, 05:53 PM
Registered User
 
Join Date: Jul 2004
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?

 
Old January 30th, 2007, 09:53 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
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
 
Old November 30th, 2007, 05:20 PM
Registered User
 
Join Date: Nov 2007
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.





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





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