473,366 Members | 1,164 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,366 software developers and data experts.

/debug:pdbonly in a C# project

zee
Hi,

Is it possible to specify /debug:pdbonly somehow in a C# project, or I must
resort to writing custom build scripts?

My problem is when I set Generate Debug Info to True, DebuggableAttribute
(true, true) is added to the assembly, which is VERY undesirable.

If I try to override the DebuggableAttribute in code, I get an error CS0647:
Error emitting 'System.Diagnostics.DebuggableAttribute' attribute --
'Assembly custom attribute 'System.Diagnostics.DebuggableAttribute' was
specified multiple times with different values'.

Distrubuting an additional .INI file with DebuggableAttribute overrides is
also undesirable.

It would be great if C# had a way to pass additional compiler options as C++
has. It would solve this and many other problems.

---

Thanks,
zee

Nov 15 '05 #1
2 3079
Unfortunately, the /debug:pdbonly option is not available via the project
properties in VS2002 or VS2003. We are hoping to address this issue in the
future.

HabibH.

"zee" <v0****@yandex.ru> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Hi,

Is it possible to specify /debug:pdbonly somehow in a C# project, or I must resort to writing custom build scripts?

My problem is when I set Generate Debug Info to True, DebuggableAttribute
(true, true) is added to the assembly, which is VERY undesirable.

If I try to override the DebuggableAttribute in code, I get an error CS0647: Error emitting 'System.Diagnostics.DebuggableAttribute' attribute --
'Assembly custom attribute 'System.Diagnostics.DebuggableAttribute' was
specified multiple times with different values'.

Distrubuting an additional .INI file with DebuggableAttribute overrides is
also undesirable.

It would be great if C# had a way to pass additional compiler options as C++ has. It would solve this and many other problems.

---

Thanks,
zee

Nov 15 '05 #2
zee
Thank you for the answer.

I believe just allowing to pass 'additional compiler options' would have
solved it.
And it would enable some other features, such as compiling projects as
..netmodule's from within the IDE.

Personally, I really lack the rich set of compile options I have in C++. C#
options seem too bare for me :-).

--
zee

"Habib Heydarian [MSFT]" <ha****@microsoft.com> wrote in message
news:eY**************@TK2MSFTNGP11.phx.gbl...
Unfortunately, the /debug:pdbonly option is not available via the project
properties in VS2002 or VS2003. We are hoping to address this issue in the
future.

HabibH.

"zee" <v0****@yandex.ru> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Hi,

Is it possible to specify /debug:pdbonly somehow in a C# project, or I

must
resort to writing custom build scripts?

My problem is when I set Generate Debug Info to True, DebuggableAttribute (true, true) is added to the assembly, which is VERY undesirable.

If I try to override the DebuggableAttribute in code, I get an error

CS0647:
Error emitting 'System.Diagnostics.DebuggableAttribute' attribute --
'Assembly custom attribute 'System.Diagnostics.DebuggableAttribute' was
specified multiple times with different values'.

Distrubuting an additional .INI file with DebuggableAttribute overrides is also undesirable.

It would be great if C# had a way to pass additional compiler options as

C++
has. It would solve this and many other problems.

---

Thanks,
zee



Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Pocket Rocket | last post by:
I am developing an application using Windows forms, C# and Visual Studio.Net. The executable size remains the same whether I built the debug or release version. Is it normal? Am I missing...
0
by: DKode | last post by:
Ok, Maybe there is an easier way to do what it is im trying to do. Let me explain how I have the solution setup first. Basically, I am having alot of difficulty debugging on my local machine and...
1
by: therobman | last post by:
I am able to successfully build my project using a fresh install of Visual Studio .Net, but when I try and compile/run it, a dialog box comes up stating: "Unable to start debugging." "Unable...
2
by: Gary James | last post by:
I've inherited a COM dll project that was switched from the VS6 environment to VS.Net. I thought I could debug the COM dll code by adding a VB.Net project to the solution, but when I set...
2
by: Axel Dahmen | last post by:
Hi, I'm using VS2002 SP1 / .NET1.0 SP2 / Windows 2k Server SP3. From one day to the other I can't debug anymore. The error message I get is: "Error while trying to run project: Unable to start...
1
by: Angel | last post by:
i have set my aspnet project to "debug" compilation, but for some reason i place breakpoints in my project, but it is not breaking(debuging) at all... What is wrong? thanks.
3
by: Vadim | last post by:
Hi, everybody I have ASP.NET Solution with two projects. I made reference from main project to the other project. When application runs it debugs main project, but cannot debug second...
2
by: newscorrespondent | last post by:
I have compiled in DEBUG mode but don't get the debug information from StackFrame class. Is there a specific setting I need to use so that information is included for a debug build. Thanks Tom
10
by: Ole | last post by:
Hi, Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't debug my C# program from VS2005 - when setting a breakpoint I only see a ring instead of the normal red dot and when...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.