PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • 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.
Versions 17 and later
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Apple Watch This function is now available in Apple Watch mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Display information in the trace window
Trace("Calculation result: " + ResCalc)
Syntax
Trace(<Information> [, <Additional Information> ...])
<Information>: Any type
Set of elements that will be displayed in the trace window.
<Additional Information>: Any type
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

Windows Mobile Trace is taken into account during a test in the simulator and during a test on the Pocket PC. In this last case, the information is directly displayed in the environment, in the "Trace of debugger" pane.
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).
iPhone/iPadApple Watch Trace displays the requested information in the standard output window of Xcode.
AndroidAndroid Widget Trace is used to save the requested information in the application log (called "ADB log") at run time or in emulator mode. This information is found at "Info" level.
This log can be viewed when the device is connected via USB or when using the emulator from the DDMS application supplied with the Android SDK.
See Managing ADB logs for more details.
WINDEVWEBDEV - Server codeWEBDEV - Browser codeWindows Mobile

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.
WINDEVWEBDEV - Server codeWEBDEV - Browser codeWindows Mobile

Popup menu of trace window

The popup menu of Trace window is used to:
  • copy/cut/paste the content of the 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 the 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>".
    Note: 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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230vm.dll
Windows Mobile wp230vm.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230vm.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment