FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
Trace To File
Trace To File
Débuté par André Labuschagné, 14 avr. 2018 12:55 - 4 réponses
Connectez-vous…
André Labuschagné
#1
Posté le 14 avril 2018 - 12:55
Hi All
Sounds crazy but I have never had to use Trace before. Everything just seems to work. But now I am trying to establish why a procedure is no longer functioning - intermittently - under what circumstances I know not yet.
What I am needing to do is write a message to a file after each call that I suspect could fail.
Would one use Trace for this and if so how or is it better to just append to a text file programmatically and if so how.
The error returns if any from HExecuteSQLQuery and HAdd needs to be monitored. It is intermittent so I just need to write to a file that I can look at when the procedure no longer works. It is a procedure with a timer.
Cheers
Andre
Signaler
0
0
Fabrice Harari
#2
Posté le 14 avril 2018 - 13:54
Hi André
yes, you can and should use trace for that (I do it all the time)...
There is a special syntax for it (see help)
And if you are interested in using it in a more advanced way, you can look at the Trace class in WXReplication (can mark creation and destruction of object, automatically add timestamp, etc)
Best regards
Signaler
0
0
André Labuschagné
#3
Posté le 14 avril 2018 - 16:03
Hi Fabrice
>>There is a special syntax for it (see help)
I have - saw nothing about writing to disk excepting the Linux default. That is why I posted.
Cheers
André
Signaler
0
0
Steven Sitas
#4
Posté le 14 avril 2018 - 18:15
Hi Andre,
take a look here:
https://help.windev.com/en-US/…
Regards
Steven Sitas
www.alpha360.biz
Signaler
0
0
André Labuschagné
#5
Posté le 14 avril 2018 - 20:58
Hi Steven
Thanks - got that working now. Nice and powerful.
Cheers
André
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte