PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Use conditions according to the platforms
  • Trace window
  • Popup menu of trace window
  • Special case
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Displays the requested information (content of a control for example) in a window opened in parallel of the current window.
Trace window
Note: Trace is useful during the development to check whether a program is operating properly. In the editor, the "Trace of debugger" displays the information found in the trace window as well as the full text of errors that occurred.
Example
// Display information in the trace window
Trace("Calculation result: " + ResCalc)
Syntax
Trace(<Information> [, <Additional information 1> [... [, <Additional information N>]]])
<Information>: Any type
Set of elements that will be displayed in the trace window.
<Additional information 1>: Any type (optional)
Additional elements that will be displayed in the trace window. Will be displayed on the same line as <Information>.
WEBDEV - Browser code This syntax is not available in this version.
<Additional information N>: Any type (optional)
Additional elements that will be displayed in the trace window. Will be displayed on the same line as <Information>.
WEBDEV - Browser code This syntax is not available in this version.
Remarks

Use conditions according to the platforms

Linux Trace can be used to display the requested information in a file only. By default, this file is created in the UNIX temporary directory and is named "Trace_<Project>.txt".
PHP The information of Trace is displayed at the beginning of the HTML page returned.
WEBDEV - Server code
  • The trace window is displayed in Go only for the dynamic pages (non-AWP pages).
  • In AWP mode and in deployment, Trace can only be used to write the specified information into a file (trFile constant used with TraceStart).
WEBDEV - Server codeWEBDEV - Browser code

Trace window

  • The information passed in parameter is displayed on the next line of the trace window.
  • The trace window is automatically opened during the first call to Trace (TraceStart is automatically run). By default, this window is opened in the top left corner of the screen.
  • The operating mode of Trace is equivalent to the operating mode of Info but the display is performed in a parallel window, without waiting for keys.
  • WEBDEV - Server codeWEBDEV - Browser code The trace window displayed from a browser code differs from the trace window displayed from a server code. Therefore, two different trace windows can be opened at the same time.
WEBDEV - Server codeWEBDEV - Browser code

Popup menu of trace window

The popup menu of Trace window is used to:
  • copy/cut/paste the content of trace window.
  • save the content of the trace window in a text file.
    Caution: This option is available only if the wdxxxstd.dll library is found on the end-user computer.
  • clear the content of trace window.
  • open the trace window on top of all the other windows (including the windows from the other applications).
  • store the size and position of the trace window when it is closed. When re-displaying this window, it will be displayed according to the size and position stored.
  • display an horizontal scrollbar.
  • display special characters in gray and literally: EOT, TAB, etc. Therefore, the "Carriage Return" (CR) characters found correspond to "<\r><\n>".
    Remark: This option will be taken into account from the next line of information displayed.
WEBDEV - Server code

Special case

PageDisplay and PageRefresh cannot be used after Trace.
PHP If PageDisplay and PageRefresh are used, a warning message will be displayed by the PHP engine.
Component : wd250vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment