Not easily, and I recommend against going down that path. Instead, consider leaving the debugging code in place and turning it on and off with a compile flag or environment variable. Then it will be useful for everyone on the project. Most languages have logging and debugging libraries for this with minimal impact on performance.
↧