> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Debug

> Debugging onsite

## NetServer diagnostics

You can turn on and off logging for NetServer directly in [Diagnostics section][1] of the *web.config* or *SuperOffice.config* file.

* Make sure the key `LogError` is set to True.
* Make sure it writes to a file by setting `LogToFile` to True.
* Update `LogFolder` if necessary.

The client needs write permission to the folder. Otherwise, NetServer will write the log file to the same location it was started from.

<Note>
  Remember to turn the logging off when it is not needed, as extended logging in NetServer will reduce performance.

  **There are changes in how NetServer logging is enabled from SuperOffice 10.2.** Please read the SuperOffice [Web client debugging page][2] for more information.
</Note>

### How do I find the location of the log file

If you know that the debug is enabled and you just want to find a location of the file without making all users log out from the session, you can do it directly in the config file.

1. Find a *.config* file of the component you are debugging.
2. In the `<Diagnostics>` section `<add key="LogFolder" value="C:\Log">` will store the path to the log file.

## NetServer start-up and performance

SuperOffice Web always takes a long time to start up initially because IIS needs to initiate both the .NET common language runtime and NetServer. As soon as the w3wp.exe IIS work process is up and running you'll see that the performance is better.

## Debug add-ons

* [Enable debug for Outlook Mail Link][8]
* [Enable debug for Notes Mail Link][8]

[1]: ../web-config/diagnostics

[2]: ./web-client#10-2

[8]: ../../../../integrations/mail-link/debug


## Related topics

- [Write output](/en/automation/crmscript/fundamentals/output.md)
- [Print debug](/en/automation/crmscript/debugging/print-debug.md)
- [Debug Mail Link](/integrations/mail-link/debug.md)
- [Debug Web client](/en/onsite/debug/web-client.md)
- [Debug Win client](/en/onsite/debug/win-client.md)
- [ejscript_debug table](/en/database/tables/ejscript-debug.md)
