I’m got a project that is on our production server that is published in Release mode. Now I’m getting a error on the production server I cant reproduce on our test server. My thought was to remote debug it when the error occur, which brings me to my question. Do I need to republish my project in debug mode or is it enough with changing the debug setting in web.config?
And if I have to republish in debug (which I probably have), does it affect performance a lot to have it in debug mode on production server for a while? whats you recommendations
Thanks
You have to republish with code in debug mode, for two reasons:
There is a difference in performance between code in release mode and debug mode, but it’s normally not that much. The main differences is that exceptions contains a lot more information, so they take a lot longer to create, and the scope of variables are larger, so unused objects may live longer before they are garbage collected.