Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
4
Erster Beitrag:
vor 6 Monaten, 3 Wochen
Letzter Beitrag:
vor 6 Monaten, 3 Wochen
Beteiligte Autoren:
Fabrice Harari, John Fligg

Trace files

Startbeitrag von John Fligg am 25.01.2018 10:05

In my Project Init I have this:

TraceEnd()
TraceStart(trFile,gsDebugFile)
Trace(CR + CR)
Trace("*** Start of Sesssion " + gsTraceDate + " ***")
Trace(CR)

gsDebugFile is a project global variable. However I have noticed that when I either call another local procedure or Server procedure the trace statement does not recognize the trace file any longer. So I have to reset it all with another traceend/trace start statemement.

Obviously trace does not work when you are running a server side procedure, but when you return from that to run local code surely the original trace statement should still work on the gsDebugFile?

Thx

Antworten:

Hi John

what do you call a serverside procedure?

I'm using trace in both windev, webndev and windev mobile project without any problem in a similar way to yours, so I'm not sure what you are talking about...

And in what product are you? Windev, webdev ?

best regards

von Fabrice Harari - am 25.01.2018 11:03
It can be any of the 3 products. By server side I mean I have a service running. I call a procedure that runs on the server and returns a value for example. Now I issue another trace statement to reveal the return value and the trace file seems to stop working. No trace is issued ever again until I restart the project.

The trace file is still there with everything recorded before the call to the server procedure but nothing after.

von John Fligg - am 25.01.2018 11:18
Hi John

now THAT is strange... I have been doing that non stop in my WXreplication project, as this is the only way to debug what's going on when several projects are communicating (in my case via httprequest/rest type webservice) and it has been working flawlessly for YEARS in windev, webdev and mobile.

So except if you show us the code in question and we can see something strange in it, I don't know what to tell you, excep that TRACE does NOT have ANY problem with the calling of a webservice...

best regards

von Fabrice Harari - am 25.01.2018 12:14
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.