Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I'm having problems running my C# project, each time i run it i get this error message:

The following Module was built either with Optimization enabled or without Debug Information:
C:\David\flash\support\UserSupport\bin\Debug\Support.Dll
To Debug this Module, Change it's project build configuration to Debug mode. To suppress this message, Disable 'Warn if no user code on launch' debugger option.


pls someone should help me with what i can do, i'm kind of new in this!

Your help will be appreciated.

David.
Posted

On the tool bar, probably just below the menu bar, there is a dropdown which if you hover the mouse over will show a tooltip "Solution Configurations" - drop it down and select "Debug" rather than "Release".
Unless you have changed lots of things in the properties that you probably shouldn't, that should switch you back to having debug information built in.
 
Share this answer
 
Comments
fire_hawk 26-Oct-11 12:24pm    
Thanks guys i've got the solution to the problem ...i appreciate you guys here, you guys are the Bomb! ;)

David.
Have you read the message at all? It already tells you what to do. Set the setting back to 'Debug' or disable the optimizations, otherwise debugging will not work properly.
 
Share this answer
 
Comments
fire_hawk 24-Oct-11 12:57pm    
PLs How do i disable optimizations ...pls help
Sergey Alexandrovich Kryukov 24-Oct-11 20:56pm    
Please see my solution -- I gave you all the detail. You could easily find out by yourself.
--SA
fire_hawk 26-Oct-11 12:24pm    
Thanks guys i've got the solution to the problem ...i appreciate you guys here, you guys are the Bomb! ;)

David.
So, how to switch debugging and optimization?

Are you using Visual Studio or not?

If you use Visual Studio, here is what involved:

[Project Properties] => "Build" tab => ("Define DEBUG constand", "Define TRACE constant", "Optimize code")
[Project Properties] => "Debug" tab => see "Enable Debuggers and 3 check boxes.

If you are using raw C# compiler "CSC.EXE", see it options: "/debug[+|-]", "/debug:{full|pdbonly}", "/optimize[+|-]", "/define:<symbol list="">".

That's it.

—SA
 
Share this answer
 
Comments
fire_hawk 26-Oct-11 12:24pm    
Thanks guys i've got the solution to the problem ...i appreciate you guys here, you guys are the Bomb! ;)

David.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900