# Collecting Logs for Troubleshooting

In the course of troubleshooting issues, I may ask you to provide me with logs so that I can properly diagnose your issue when the root cause isn't obvious.

## Windows

### Internal Emulator Logging

In the Advanced settings, you can enable "Log to File" which will create a `flycast.log` file in the same location as `flycast.exe` while you run the emulator. For Fightcade users, this would be `Fightcade\emulator\flycast\flycast.log`

After you have enabled Log to File, replicate the issue you want me to diagnose, then send a copy of `flycast.log` to the Discord support channel.

<figure><img src="https://2728186065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp0E0T0NKuHd0qIVf9ia4%2Fuploads%2FSz64HziRtHMMkYxUtSJl%2Fimage.png?alt=media&#x26;token=409eff61-b1b0-409b-9ad3-45a555b42fdf" alt=""><figcaption><p>Settings > Advanced > Log to File</p></figcaption></figure>

### DebugView

If Flycast Dojo's own logs do not reveal anything, we may resort to using a program called [DebugView](https://learn.microsoft.com/en-us/sysinternals/downloads/debugview) to show a log of events from all currently running programs to investigate what is going on. This may be useful when troubleshooting interactions between different programs launching Flycast Dojo, like Fightcade.

Just download [DebugView](https://learn.microsoft.com/en-us/sysinternals/downloads/debugview), unzip it, and run `dbgview64.exe`. This will open a blank window. From here, you should replicate the issue to be diagnosed once more. Once you have performed actions on Flycast, you should see the DebugView window populate with events.

Once you have completed this, click on the "Save" icon to save the log to a file. From here, you can send the log file to me in the relevant Discord support channel.

<figure><img src="https://2728186065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp0E0T0NKuHd0qIVf9ia4%2Fuploads%2FnCkdWW2mZL38mKN1S2M1%2Fimage.png?alt=media&#x26;token=f24d8583-13ad-4c9c-be57-03ce86fcd72d" alt=""><figcaption><p>An example DebugView log window after launching Flycast Dojo via Fightcade</p></figcaption></figure>

## Mac OS

### Internal Emulator Logging

In the **Advanced** settings, you can enable "Log to File" which will create a `flycast.log` file in the home directory's `data` folder. To access this directory, head to the **General** settings and hit the "Reveal in Finder" button.\
\
After you have enabled Log to File, replicate the issue you want me to diagnose, then send a copy of `flycast.log` to the Discord support channel.

<figure><img src="https://2728186065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp0E0T0NKuHd0qIVf9ia4%2Fuploads%2FYkUSQp094hTEBGjAWogr%2FScreenshot_2024-03-17_at_1.54.22_PM.png?alt=media&#x26;token=9379ca94-4ced-49f8-bfd3-3d963592a9fe" alt=""><figcaption><p>General Settings Window, showing Home Directory</p></figcaption></figure>
