Seperation of files in Debug?

Feb 12, 2010 at 3:30 PM


Is there a way to disable the combination of files in debug mode?  It'd be useful to be able to track which file I'm trying to look at in Firebug and I've currently got one file with thousands of lines!!



Feb 13, 2010 at 3:11 PM


As of currently, that's not possible.  Think of one possible way Combres is used, e.g. <script src="<%= Url.CombresUrl("set") %>" ... />, I'm not so sure if this request can be reasonably implemented at all (e.g. no matter what URL Combres generates, it's just 1 URL in this case).  What if Combres generates some comment before a file in debug mode, e.g. <!-- this is abc.js -->, does that help?



Feb 15, 2010 at 8:51 AM

Hi Buu,

Ah yes of course, I can see what you mean about the single file.  I think the comments could help a little towards this in debug mode at least.



Feb 15, 2010 at 2:55 PM

You could also expand your HtmlHelper to take a boolean parameter specyfying whether to output the script-tags as well. Ie.

Url.CombresUrl("set") = /.../set.js

Url.CombresUrl("set", true) = <script src="/.../set.js" ... />

the first method off course calls the second with false as input. The body would then look something like

ComresUrl(string setName, bool outputScriptTags) {

   if (outputScriptTags && HttpContext.Current.IsDebug) {

      foreach (var set in GetSet(setName)) {






Feb 19, 2010 at 3:31 AM

@burningice: if I understand you correctly, the current CombresLink(...) extension method already does what the proposed Url.CombresUrl("set", true) does.

Feb 19, 2010 at 3:32 AM

@L: I've added a ticket here for that:

Feb 25, 2010 at 12:25 PM

The latest code commit already implements this feature (append comment identifying the current resource during debug mode).  Hope it helps.

Feb 26, 2010 at 8:03 AM

An alternative feature facilitating debugging is just implemented.  See: and (changeset #37361)