Bug 360395 - Enable debugging mode by default
Summary: Enable debugging mode by default
Status: NEW
Alias: None
Product: Mono: Runtime
Classification: Mono
Component: debug (show other bugs)
Version: SVN
Hardware: All All
: P5 - None : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-10 09:06 UTC by Gert Driesen
Modified: 2011-06-02 18:01 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gert Driesen 2008-02-10 09:06:50 UTC
Shouldn't we enable the runtime debugging mode by default? This would match MS, and would make it easier to troubleshoot issue (when debugging symbols are available).

What's the rationale for not enabling it by default? Performance?
Comment 1 Forgotten User vxPDddArjq 2008-02-10 14:21:26 UTC
Yes, performance. Generating debug info at runtime takes time and memory.
I agree however, that this should be enabled by default. It will have a perf
impact, but that can be lessened by optimizing the relevant code.
People who care about the perf impact could disable it with a new command line
option.
Comment 2 Marek Safar 2008-02-11 10:45:46 UTC
Should not we use System.Diagnostics.DebuggableAttribute for this purpose ?

Comment 3 Gert Driesen 2008-08-19 22:34:14 UTC
Zoltan, any update on this?
Comment 4 Forgotten User vxPDddArjq 2008-08-20 01:08:01 UTC
No, its not really for me to decide.
Comment 5 Rodrigo Kumpera 2008-08-20 01:30:35 UTC
We are in no position to make such decision as there are a couple of unanswered questions that we must first deal with.

How big is the memory and performance footprint? How much more memory apps such as banshee, MD and others consume. How longer the initialization of MD takes?

The debugging mode code is not well tested. Not so long ago, I fixed a memory leak that happened for all frames of an exception stack-trace. So how much work is there to make it really production ready?

What is the impact of enabling this for other projects? Will this have any impact on the debugger, for example?

Anyway, unfortunately right now we cannot have --debug and generic sharing at the same time or the debugger breaks. Neither Martin or Mark have reported on fixing the issue. Let's get over this first before moving on with the discussion.

So, if this change is to be done, it's not happening on the 2.2 time frame as the runtime team have too much at hand and there are quite some work to get to the point that it's sane do it.