ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous WINDEV functions
  • Use conditions according to the platforms
  • Trace window
  • Context menu of the trace window
  • Special case
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Displays the requested information (content of a control, for example) in a window opened next to the current window.
Trace window
Remarks:
  • is useful during the development process to check whether a program runs properly. In the editor, the "Debugger trace" displays the information found in the trace window as well as the full text of errors that occurred.
  • The trace window is displayed in both development and run mode. To avoid a runtime display, use the InTestMode function.
Example
// ------------------
// Affichage d'informations dans la fenêtre de trace 
Trace("Résultat du calcul : " + ResCalcul)
// ----------------
// Surcharge de l'affichage de la trace
PROCEDURE Trace(MessageAAfficher)
IF InTestMode() THEN Trace(MessageAAfficher)
// Appel de la fonction Trace surchargée
WL.Trace("Lancement de la trace")
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 information to be displayed in the trace window. It will be displayed on the same line as <Information>.
<Additional information N>: Any type (optional)
Additional information to be displayed in the trace window. It will be displayed on the same line as <Information>.
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 with the name "Trace_<Project>.txt".
PHP The information of Trace is displayed at the beginning of the HTML page returned.
WEBDEV - Server code For WEBDEV pages:
  • The trace window is displayed in test mode ("Go" option) only for dynamic pages (other than Active WEBDEV Pages).
  • In AWP and deployment mode, Trace can only be used to write the specified information to a file (trFile constant used with TraceStart).
WINDEV Mobile For Mobile applications:
  • In the simulatorthe trace window is displayed.
  • New in SaaS
    When testing on the mobilethe trace window is displayed on the device (test via WMDev (for iOS applications), via USB or Wi-Fi).
    Note: This feature is only available from WINDEV Suite SaaS 2025 - Update 3.
    For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.
  • In execution:
    • iPhone/iPadIOS WidgetApple WatchMac Catalyst Trace displays requested information in the Xcode standard output window.
    • AndroidAndroid Widget Trace saves the requested information in the application log ("ADB log") at runtime or in emulator mode. This information appears in the "Info" section.
      This log can be viewed when the device is connected via USB or when using the emulator from the DDMS application provided with the Android SDK.
      For more details, see Managing ADB logs.
    • New in SaaS
      The trace window can be displayed using function TraceStart with the constant trWindow.
      Note: This feature is only available from WINDEV Suite SaaS 2025 - Update 3.
      For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.

Trace window

  • The information passed as parameter is displayed on the next line of the trace window.
  • The trace window opens automatically the first time Trace is called (TraceStart is executed automatically). By default, this window is opened in the upper-left corner of the screen. It can be moved. The new position is automatically saved.
  • Trace is similar to Info but the information is displayed in another window and no key needs to be pressed.
  • WEBDEV - Server codeWEBDEV - Browser code The trace window displayed from a Browser code is different from the one displayed from a Server code. Therefore, two different trace windows can be opened at the same time.
New in SaaS
WINDEV Mobile Special features on mobile:
  • The trace window is:
    • finger-moveable via title bar.
    • resizable by fingertip.
  • By default, the trace window has a size of 200x200 and is positioned in the bottom right-hand corner of the screen.
  • The trace window can be rolled up or down using the.
  • Text size can be changed with a finger (pinch).
  • The trace window cannot leave the screen.
  • The trace window is always displayed on top of all application windows.
  • It can be displayed in the project initialization code or via a secondary thread.
  • The trace window cannot be displayed from a widget or background process.
Note: This feature is only available from WINDEV Suite SaaS 2025 - Update 3.
For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.

Context menu of the trace window

The context menu of the trace window allows you to:
  • copy/cut/paste the content of trace window.
  • save the content of the trace window in a text file.
    Note: This option is only available if the wdxxxstd.dll library is present on the end-user workstation.
  • clear the contents of the trace window.
  • open the trace window on top of all the other windows (including the windows from the other applications).
  • save the size and position of the trace window when it is closed. When this window is displayed again, it will keep the size and position saved.
  • display a horizontal scrollbar.
  • Display control characters: Special characters will be displayed in grayed and literal form: EOT, TAB, etc. Therefore, the "Carriage Return" (CR) characters in the trace window are represented as "<\r><\n>".
    Note: This option will only be taken into account from the next line of information displayed.
New in SaaS
WINDEV Mobile Special features on mobile: The context menu offers the following options:
  • Copy / copy all trace window contents.
  • clear the contents of the trace window.
  • show or hide control characters.
Note: This feature is only available from WINDEV Suite SaaS 2025 - Update 3.
For more details, see Using new features exclusive to WINDEV Suite SaaS 2025.
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: wd300vm.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/14/2025

Send a report | Local help