# WebAPP debugging on xojo cloud?

**URL:** <https://forum.xojo.com/t/webapp-debugging-on-xojo-cloud/83167>\
**Category:** Xojo Cloud\
**Created:** [November 12, 2024, 4:34pm UTC](https://forum.xojo.com/t/webapp-debugging-on-xojo-cloud/83167 "2024-11-12T16:34:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christophe\_Blanc](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/ed8c4c/32.png) [@Christophe\_Blanc](https://forum.xojo.com/u/Christophe_Blanc)\
**Post date:** [November 12, 2024, 4:34pm UTC](https://forum.xojo.com/t/webapp-debugging-on-xojo-cloud/83167/1 "2024-11-12T16:34:15Z")

</div>

Hi,

I am new to xojo cloud. And I don’t know how to find bugs with xojo cloud…  
I am use to System.DebugLog but when I read the logs on the logs folder I don’t retrieve anything concerning my App DebugLog?

Thanks

Chris

---

<div class="post-metadata">

**Author:** ![Jason\_Parsley](https://forum.xojo.com/user_avatar/forum.xojo.com/jason_parsley/32/152_2.png) [@Jason\_Parsley](https://forum.xojo.com/u/Jason_Parsley)\
**Post date:** [November 12, 2024, 4:51pm UTC](https://forum.xojo.com/t/webapp-debugging-on-xojo-cloud/83167/2 "2024-11-12T16:51:30Z")

</div>

Hi Chris - If you control the log file, I would put it in:

SpecialFolder.SharedDocuments

---

<div class="post-metadata">

**Author:** ![Christophe\_Blanc](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/ed8c4c/32.png) [@Christophe\_Blanc](https://forum.xojo.com/u/Christophe_Blanc)\
**Post date:** [November 15, 2024, 8:35am UTC](https://forum.xojo.com/t/webapp-debugging-on-xojo-cloud/83167/3 "2024-11-15T08:35:51Z")

</div>

Thanks Jason for your advice, I wrote my own debug\_log

```auto
Try
  // Accéder au dossier SharedDocuments
  Dim logFile As FolderItem = SpecialFolder.SharedDocuments.Child("debug_log.txt")
  
  // Ouvrir ou créer le fichier pour l'écriture en mode append
  If logFile <> Nil Then
    Dim outputStream As TextOutputStream
    If logFile.Exists Then
      outputStream = TextOutputStream.Append(logFile) // Ajouter au fichier existant
    Else
      outputStream = TextOutputStream.Create(logFile) // Créer un nouveau fichier
    End If
    
    // Écrire la date/heure et le message de log
    outputStream.WriteLine(DateTime.Now.ToString + " - " + logMessage)
    
    // Fermer le flux pour sauvegarder les changements
    outputStream.Close
  End If
Catch e As IOException
  // Gérer une éventuelle erreur d'I/O
  System.DebugLog("Erreur lors de l'écriture dans le log: " + e.Message)
End Try

```

Works great, I get the log in shared\_document on xojo cloud

Chris
