Extension’s code protection
When you write an extension for Dynamics 365 Business Central, the extension’s code is, by default, protected against downloading or debugging.
You can control these settings by using the resourceExposurePolicy
settings in the extension’s manifest file (app.json
):
"resourceExposurePolicy": {
"allowDebugging": true,
"allowDownloadingSource": true,
"includeSourceInSymbolFile": true,
"applyToDevExtension": false
},
In the resourceExposurePolicy
setting, you can specify the following parameters:
allowDebugging
:TRUE
to enable debugging of your extension’s code, andFALSE
otherwise. The default value isFALSE
. Please remember that if you have marked methods and variables with the[NonDebuggable]
attribute, these methods and variables will remain non-debuggable.allowDownloadingSource
:TRUE
to enable the possibility to download the extension...