'Can I separate the debug, release web.config file from the website project?(.NET WSP, not web application project)

Before deploying the website, I would like to separate it into debug and release to prevent errors in posting it to the server with debug=true in the web.config file. +++ Also, is there a way to do debug=true only when we test on localhost in web.config?

Please give a lot of advice to the C# novice developer.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source