How to enable "Tracing"?

  • Ben F.
  • Ben F.'s Avatar Topic Author
3 years 5 months ago #24 by Ben F.
How to enable "Tracing"? was created by Ben F.
I'd like to check execution using a log or a trace file.
How can it be turned on in SAPx ?
  • Serge Volkov
  • Serge Volkov's Avatar
3 years 5 months ago - 3 years 5 months ago #26 by Serge Volkov
Replied by Serge Volkov on topic How to enable "Tracing"?
To enable "Tracing" in Connect for SAP Explorer you should just check the flag "Tracing Enabled" as shown below:



After closing of the application there should be several "*.trc" files in the Explorer directory.
Attachments:
Last edit: 3 years 5 months ago by Serge Volkov.
  • Serge Volkov
  • Serge Volkov's Avatar
3 years 5 months ago - 3 years 5 months ago #27 by Serge Volkov
Replied by Serge Volkov on topic How to enable "Tracing"?
If you want to enable "SAPx Tracing" directly in the code of an application - just call SAPxNWSetTracing(True, '') where SAPx should start to trace.
For example, you can place the call at the beginning of your application:
program YourAppName;
uses
  Forms,
  fMain in 'fMain.pas' {frmMain},
  gsSAPxNWCore;
begin
  SAPxNWSetTracing(True, ''); // <- This line enables SAPx Tracing

  Application.Initialize;
  Application.CreateForm(TfrmMain, frmMain);
  Application.Run;
end.

Please ensure that the compiler directive "SAPX_TRACE" is defined in gsSAPx.inc.
Last edit: 3 years 5 months ago by Serge Volkov.
  • Serge Volkov
  • Serge Volkov's Avatar
3 years 5 months ago #28 by Serge Volkov
Replied by Serge Volkov on topic How to enable "Tracing"?
If you only want to check "RFC Tracing" (created by the SAP RFC DLL) - you can simply add the property "TRACE" to your alias file:

Attachments:

Contact US

  • gs-soft AG

    Delfterstrasse 10

    CH-5000 Aarau

    Switzerland

    Phone:
    +41 (0)62 832 20 40
    E-Mail:
    contact@gs-soft.com


  • Language