console-web-api
Reactive icon

Console Web API

Stable version 2.0.0 (Compatible with OutSystems 11)
Uploaded
 on 2 Sep (3 days ago)
 by 
5.0
 (7 ratings)
console-web-api

Console Web API

Details
Supercharge your client-side debugging. Access native browser Console Web API methods (Log, Assert, etc.) directly in your OutSystems logic without writing custom JavaScript nodes. Fast, clean, and essential for Reactive & Mobile apps.
Read more

Unlock the full power of the browser's Developer Tools directly inside Service Studio.

The Console Web API component is designed to be the comprehensive bridge between OutSystems logic and the native console interface. Its goal is to eliminate the need for custom JavaScript nodes for debugging, logging, and profiling, providing a seamless, low-code experience for frontend development.

Whether you are debugging complex reactive flows, analyzing performance loops, or enforcing code quality with assertions, this library translates the standard Web API methods into easy-to-use Client Actions.

Why use Console Web API?

  • True Low-Code Debugging: Stop writing repetitive console.log() JavaScript nodes. Drag and drop native actions directly into your logic.

  • Complete Control: Designed to eventually cover the entire spectrum of the Console API, from simple logging to complex grouping, timing, and tracing.

  • Clean Architecture: Keep your flows readable and maintainable. Replace "spaghetti" scripts with standardized, self-documenting actions.


Release notes (2.0.0)

Internal rewrite plus API cleanup. All JavaScript is consolidated into a single script that registers window.ConsoleWebAPI; every client action is now a one-line delegate over it, replacing 17 independent inline implementations. Four private helpers were removed.

Breaking — consuming apps must be updated before promotion

  • Output is disabled by default. Call the new ConsoleConfigure(True) once from the consuming app's OnApplicationReady, passing a feature toggle or Site Property. Without it, nothing logs and there is no error to explain why.
  • All 24 actions renamed from Console_X to ConsoleX. GetObjectByElementId and PerformanceNow are unchanged.
  • ConsoleAssert: input parameter Arguments renamed to Values.
  • Structure ConsoleDir_Options renamed to ConsoleDirOptions.


Behaviour changes

ConsoleDebug now marshals arguments like the other log levels — a single value is unwrapped rather than nested. An empty Values list contributes no argument where it previously logged a visible []. Labels are trimmed for ConsoleGroup, ConsoleGroupCollapsed, ConsoleCount, ConsoleCountReset, ConsoleTime, ConsoleTimeEnd and ConsoleTimeLog.

New

ConsoleConfigure(IsEnabled) — required, see above.

ConsoleDirXmlById(ElementId) — resolves an element by id and dumps it in one call.

Fixed

Timer labels now pair across ConsoleTime / ConsoleTimeLog / ConsoleTimeEnd, which previously keyed on different strings and silently lost the measurement. 0 and false are treated as labels rather than as absent. console.profile, profileEnd, timeStamp and dirxml are feature-detected instead of throwing on browsers that lack them. Group and timer open/close pairs stay balanced when output is toggled, so the page's console can no longer be left permanently indented. No action can throw into the client action that called it. ConsoleTable warns again on malformed Columns JSON; ConsoleDir no longer warns on blank options.

License (2.0.0)
Reviews (1)
by 
2025-12-26
in version 0.2.0
The missing `console` wrapper for OutSystems
Team
Other assets in this category