Is there a performance penalty of setting Debug=”true” in the svc file? Is it significant enough to warrant setting it to “false” in a production environment?
%@ ServiceHost Language="C#" **Debug="true"** Service="AwesomeService" %>
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In your
".svc"file, if you are writing your service as inline code, or implementing service in “App_Code” folder and enablingdebugmode, it will impact the performance.Generally, always set
debug="false"before you deploy to production. If debug mode is enabled, the performance of your application can be decreased.