# jetpack/16.3-a.5/3rd-party/debug-bar/debug-bar.js

Jetpack – WP Security, Backup, Speed, &amp; Growth, version 16.3-a.5. 23 lines.

- Page: https://pluginprobe.com/plugins/jetpack/16.3-a.5/code/3rd-party/debug-bar/debug-bar.js
- Raw: https://pluginprobe.com/plugins/jetpack/16.3-a.5/raw/3rd-party/debug-bar/debug-bar.js
- Modified: 2026-03-23T15:45:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetpack/16.3-a.5/code/3rd-party/debug-bar/debug-bar.js#L10-L20`.

```javascript
/* global jQuery */
/* eslint no-var: "off" */

( function ( $ ) {
	$( document ).ready( function () {
		$( '.jetpack-search-debug-bar .json-toggle-wrap .toggle' ).click( function () {
			var t = $( this ),
				wrap = t.closest( '.json-toggle-wrap' ),
				pre = wrap.find( 'pre' ),
				content = pre.text(),
				isPretty = wrap.hasClass( 'pretty' );

			if ( ! isPretty ) {
				pre.text( JSON.stringify( JSON.parse( content ), null, 2 ) );
			} else {
				pre.text( JSON.stringify( JSON.parse( content ) ) );
			}

			wrap.toggleClass( 'pretty' );
		} );
	} );
} )( jQuery );

```
