ClientDependency icon indicating copy to clipboard operation
ClientDependency copied to clipboard

Option to enable release mode while compilation debug="true"

Open Jeavon opened this issue 10 years ago • 5 comments
trafficstars

It would be very useful to be able to set CDF to release mode even when debug="true" to be able to debug VPP etc... Perhaps a optional setting or similar: <clientDependency version="232" fileDependencyExtensions=".js,.css" loggerType="Umbraco.Web.UI.CdfLogger, umbraco" ignoreDebugMode="true">

Jeavon avatar Apr 10 '15 16:04 Jeavon

You should still be able to debug this with debug="false" in your web.config

Shazwazza avatar May 06 '15 00:05 Shazwazza

If debug=false which it must be for the VPP to be executed then I can't hit a break point in my custom VPP provider code?

Jeavon avatar May 06 '15 06:05 Jeavon

I do this all the time. Do a ctrl+F5 to launch your web project in VS without debugging. Then attach to process iisexpress. This definitely works, i can do a screenr if you like.

If you want to make that process faster, install the 'AttachTo' VS extension and then add a keyboard shortcut to Attach to IIS Express (I use ctrl + shift + enter)

This is basically how I also code/debug, i generally never do just F5 because once you stop debugging it stops IIS Express as well which is annoying. ctrl+F5 keeps it alive.

Shazwazza avatar May 06 '15 06:05 Shazwazza

Ah cool, thanks, I'll give that a try.

Jeavon avatar May 06 '15 06:05 Jeavon

@Shazwazza thats awesome, the work and the tip! :+1:

rasmuseeg avatar May 06 '15 06:05 rasmuseeg