27
Views
3
Comments
Solved
#IF DEBUG - preprocessor directive
Question

Hi there

I want to debug, but i do not want the compiled code is big. Is there preprocessor directive for debugging purpose?

Best Regards,


Rank: #1076
Solution

IBOX wrote:

Hi there

I want to debug, but i do not want the compiled code is big. Is there preprocessor directive for debugging purpose?

Best Regards,


Hi, 

I think you can add the site properties with boolean, and handle your code with the check for this property

Hope this help

 

Rank: #218

Thank you, Sir

Although it still bloats the code. 

regards

Rank: #2566

Hi,

You cannot test the code until the code is compiled, one of the things you can do is to disable parts of the code you do not need (only available in version 11 the platform) and compile a smaller version.

Another thing you can do is split the logic in question to another module in a public action and any fix you do can be quickly compiled and tested.

Hope it helps.


Best regards,

Ricardo Pisco.