Skip to content

list debug

Will Strohl edited this page Mar 1, 2022 · 1 revision

list-debug

When used, this command will display the status of the debug setting in:

  • Website configuration file (web.config)
  • Log4net configuration file (DotNetNuke.log4net.config)
  • Host Settings (security > more > debug mode)

If doing this manually, it can take several minutes in some cases and is prone to human error. Using this approach ensures you get all of the information you're looking for faster and without accidentally creating additional issues.

This helps you to identify if one of the settings is enabled when you didn't intend for it to be enabled.

You're not only saving time, but you're reducing risk and this does not require direct access to the server.

Command

Command Description
list-debug This command is purely read-only and will display status results to you.

Arguments

This prompt does not have any flags at this time.

Output

If successful, you'll see a message like below in the Prompt window.

Debugging in the Host Settings is DISABLED.  
Debugging in the web.config is DISABLED.  
Debugging in the Log4Net logging is DISABLED.  

Debugging is disabled throughout the site. 

If one or more debug settings are enabled, you'll see a slightly different result, maybe similar to the example below.

Debugging in the Host Settings is DISABLED.  
Debugging in the web.config is DISABLED.  
Debugging in the Log4Net logging is ENABLED.  

Debugging is enabled in one or more of the debugging areas. You should consider turning it off if this is not expected.  

If an error occurs, it should be displayed to you in the Prompt window. If not, you'll find it in the Log4net log files.

Additional Notes

None at this time.

Clone this wiki locally