# tap.runtime.config - Debug flag

To enable debugging in TAP Studio, a property has to be changed in the TAP.runtime.exe.config file located in the directory where TAP Studio is installed.

Open said file with a text editor, look for -> key="debugEnabled" and change its value to true.

<figure><img src="https://649489153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSSr3DfBuOYIkk2T9ec%2Fuploads%2FLjnAahSu0RZXInMjZTpI%2FWhatsApp%20Image%202024-07-17%20at%2012.07.58_c3ef22f0.jpg?alt=media&#x26;token=da7ec7b3-ef18-44c1-9732-28f4685082bd" alt=""><figcaption></figcaption></figure>

## Enabling this property allows the following things to happen:

1\) If an exception is thrown during the robot execution, it will output the contents with the exception to a dedicated log file within the bot solution directory.

2\) If an exception is thrown during the robot execution, it will take a screenshot at the time of the error. The location of the screenshot is in the bot's solution directory in a PNG format.
