Developer

Viewing the Debug Log

The debug log captures debugging information for actions and rules, according to the debug log options you specify. Use the log (Debug.log, which is stored with the project) to analyze and solve application problems in the test environment. Log content is saved until you clear it.

Prerequisites

  • Select the actions and rules for debug logging (see Selecting Debug Log Options).
  • Select the operations that you expect to invoke in your application (Selecting Debug Log Options).

Procedure

  1. With your project open and test client running, select Start of the navigation path Debug Next navigation step View Log End of the navigation path. Alternatively, in the Project Explorer view, navigate to the Test Environment folder. Right-click the file, and select Open.
    The Debug.log file opens in the default text editor within Eclipse, as defined in your Eclipse preferences.
  2. With the log available, initiate the test client.
  3. From the test client, perform an add, update, or delete action. You do not need to transmit. The actions and rules you select are performed in your application.
  4. Select the log to refresh its data, and inspect its contents.
    You should see the operations that occurred for the test client.
    2014/10/22 16:10:46.294: Opening log file
    2014/10/22 16:10:46.294: + Module=Northwind<..\..\..\action.cpp:775>
    2014/10/22 16:10:46.294:   + Action=ShowCustomer<..\..\..\action.cpp:776>
    2014/10/22 16:10:46.294:     (107) Status: ActionError - Target is not valid.
    ...
    ...
    2014/10/22 16:10:49.114: + Module=Northwind<..\..\..\action.cpp:1602>
    2014/10/22 16:10:49.114:   + Action=Transmit1<..\..\..\action.cpp:1603>
    2014/10/22 16:10:49.114:     (1)   Info: Begin action execution.
    2014/10/22 16:10:49.123:     + Client To Server Transmit='Transmit1'<..\..\..\actionStep.cpp:2545>
    2014/10/22 16:10:49.123:       (19)  Info: Begin step execution.
    2014/10/22 16:10:54.263:       + ANGEL Connection=chid00539970a.amer.global.corp.sap:7081<..\..\..\..\agentry\Angelvine\AngelConnection.cpp:642>
    2014/10/22 16:10:54.263:         + ANGEL Vine=1<..\..\..\..\agentry\Angelvine\AngelConnection.cpp:646>
    2014/10/22 16:10:54.263:           adding vine #1
    2014/10/22 16:10:54.430:       + ANGEL Connection=chid00539970a.amer.global.corp.sap:7081<..\..\..\..\agentry\AngelVine\AngelHTTPConnection.cpp:22>
    2014/10/22 16:10:54.430:         Sent.
    2014/10/22 16:10:54.465:       + ANGEL Connection=chid00539970a.amer.global.corp.sap:7081<..\..\..\..\agentry\AngelVine\AngelHTTPConnection.cpp:66>
    2014/10/22 16:10:54.465:         Received response: HTTP/1.1 200 OK
    2014/10/22 16:10:54.542:         Sent.
    2014/10/22 16:10:54.551:       + ANGEL Connection=chid00539970a.amer.global.corp.sap:7081<..\..\..\..\agentry\AngelVine\AngelHTTPConnection.cpp:66>
    2014/10/22 16:10:54.551:         Received response: HTTP/1.1 101 Switching Protocols
    2014/10/22 16:10:54.562:         + ANGEL Connection=chid00539970a.amer.global.corp.sap:7081<..\..\..\..\agentry\AngelVine\AngelSSLSocketConnection.cpp:84>
    2014/10/22 16:10:54.562:           Initiating vine information
    2014/10/22 16:10:54.572:           Sent.
    2014/10/22 16:10:54.585:       + ANGEL Connection=chid00539970a.amer.global.corp.sap:7081<..\..\..\..\agentry\AngelVine\AngelHTTPConnection.cpp:66>
    2014/10/22 16:10:54.585:         + ANGEL Connection=chid00539970a.amer.global.corp.sap:7081<..\..\..\..\agentry\AngelVine\AngelSSLSocketConnection.cpp:68>
    2014/10/22 16:10:54.585:           + ANGEL Vine=1<..\..\..\..\agentry\Angelvine\AngelVine.cpp:82>
    2014/10/22 16:10:54.585:             Sending Original Login Request message #1
    2014/10/22 16:10:54.611:             + ANGEL Connection=chid00539970a.amer.global.corp.sap:7081<..\..\..\..\agentry\Angelvine\AngelConnection.cpp:116>
    2014/10/22 16:10:54.611:               Attempt to send 576 bytes of data
    2014/10/22 16:10:54.613:               + Data Chunk=0<..\..\..\..\agentry\Angelvine\AngelConnection.cpp:148>
    2014/10/22 16:10:54.613:                 Sending 576 bytes of data (with header)
    2014/10/22 16:10:54.615:                 Sent.
    2014/10/27 16:11:24.953: Closing log file
  5. (Optional) Save a copy of the Debug.log file in another location for archive, or for later comparison.