1. A method for avoiding loss of debug log data for configured commands during the operation of an operating system, the method comprising: executing a command shell script, by a computer executing a command shell, to control an amount of code path debug data captured in memory buffers and saved; obtaining, by the computer, a configuration file that includes at least one command; and running the command shell script in the command shell in response to detection of at least one script associated with the at least one command in the configuration file.