contracts.coffee icon indicating copy to clipboard operation
contracts.coffee copied to clipboard

Ability to turn of contracts while still having the same code

Open TobiaszCudnik opened this issue 13 years ago • 1 comments

I would like to have an ability to turn of contracts while still having the same code. This would be particularly useful for debugging, which doesn't work well with contracts.

While i can bypass this by having a second build (which i do) i still don't have line-to-line mapping between those builds.

Thanks.

TobiaszCudnik avatar Mar 13 '12 15:03 TobiaszCudnik

We actually already have that:

contracts = require 'contracts.js'
contracts.enabled false

I need to add this to the docs.

disnet avatar Mar 13 '12 18:03 disnet