Posts

Showing posts from December, 2024

GlideStopWatch in ServiceNow

Image
Have you tried using GlideStopWatch in ServiceNow? It's an incredibly handy tool for measuring execution time in your server-side scripts.  Whether you're optimizing performance or debugging, GlideStopWatch helps you pinpoint slowdowns with milliseconds precision.

ServiceNow Debugging with gs.trace

Image
Debugging in ServiceNow just got easier with gs.trace! This powerful tool helps you track every step of your server-side scripts in real time.  For example, let's say you're troubleshooting a complex Business Rule: When enabled, gs.trace generates detailed logs in the System Logs for every database operation, GlideRecord query, or function call, making it simple to identify bottlenecks or issues.  gs.trace( true ); var current = new GlideRecord ( "sys_user" ); if (current. get ( "XXXXXX" )){ gs.info(current.getValue( 'name' )); } gs.trace( false ); If you're not using gs.trace yet, give it a try—it's a must-have for streamlining debugging!