Title: Debug Bar Custom Info
Author: FitWP
Published: <strong>13 juni 2014</strong>
Last modified: 1 juli 2014

---

Sök tillägg

Det här tillägget **har inte testats med någon av de 3 senaste huvudversionerna 
av WordPress**. Det kanske inte längre underhålls och kan ha kompatibilitetsproblem
när det används tillsammans med nyare versioner av WordPress.

![](https://s.w.org/plugins/geopattern-icon/debug-bar-custom-info.svg)

# Debug Bar Custom Info

 Av [FitWP](https://profiles.wordpress.org/fitwp/)

[Ladda ner](https://downloads.wordpress.org/plugin/debug-bar-custom-info.1.0.2.zip)

 * [Detaljer](https://sv.wordpress.org/plugins/debug-bar-custom-info/#description)
 * [Recensioner](https://sv.wordpress.org/plugins/debug-bar-custom-info/#reviews)
 *  [Installation](https://sv.wordpress.org/plugins/debug-bar-custom-info/#installation)
 * [Utveckling](https://sv.wordpress.org/plugins/debug-bar-custom-info/#developers)

 [Support](https://wordpress.org/support/plugin/debug-bar-custom-info/)

## Beskrivning

This plugin adds an extra panel to [Debug Bar](https://wordpress.org/plugins/debug-bar/)
plugin that allows developers to output custom debug info.

Developers can log any variable to see its value when running PHP in WordPress. 
This helps developers see the real-time values of variables. It works exactly like`
console.log()` in browsers.

#### How to add custom debug info

Add the following code wherever you want to debug a variable:

    ```
    do_action( 'add_debug_info', $var, $label );
    ```

where `$var` can has any data type.

 * If `$var` is a string or any simple value, the value is outputted directly.
 * If `$var` is an array or object, the output is the same as `print_r( $var )`.

And `$label` is the description label (optional).

#### How to view debug info

 * Click on **Debug Bar** in the top right of the admin bar
 * Select **Custom Info** panel (see [screenshots](https://wordpress.org/plugins/debug-bar-custom-info/screenshots/))

[Project Homepage](http://fitwp.com/plugins/debug-bar-custom-info/) | [Report Bugs](https://github.com/fitwp/debug-bar-custom-info/issues)
| [Donate](http://www.deluxeblogtips.com/donate/)

## Skärmdumpar

 * [[
 * Custom Info Panel

## Installation

 1. Unzip the download package
 2. Upload `debug-bar-custom-info` to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ’Plugins’ menu in WordPress

## Recensioner

Detta tillägg har inga recensioner.

## Bidragsgivare och utvecklare

”Debug Bar Custom Info” är programvara med öppen källkod. Följande personer har 
bidragit till detta tillägg.

Bidragande personer

 *   [ FitWP ](https://profiles.wordpress.org/fitwp/)
 *   [ Anh Tran ](https://profiles.wordpress.org/rilwis/)

[Översätt ”Debug Bar Custom Info” till ditt språk.](https://translate.wordpress.org/projects/wp-plugins/debug-bar-custom-info)

### Intresserad av programutveckling?

[Läs programkoden](https://plugins.trac.wordpress.org/browser/debug-bar-custom-info/),
kika på [SVN-filförvaret](https://plugins.svn.wordpress.org/debug-bar-custom-info/)
eller prenumerera på [utvecklarloggen](https://plugins.trac.wordpress.org/log/debug-bar-custom-info/)
via [RSS](https://plugins.trac.wordpress.org/log/debug-bar-custom-info/?limit=100&mode=stop_on_copy&format=rss).

## Ändringslogg

#### 1.0.2

 * Add 2nd param ”label” to `do_action`

#### 1.0.1

 * Use `do_action` to prevent fatal error when plugin files is not loaded

#### 1.0

 * First release

## Meta

 *  Version **1.0.2**
 *  Senast uppdaterat **12 år sedan**
 *  Aktiva installationer **10+**
 *  WordPress-version ** 3.8 eller senare **
 *  Testat upp till **3.9.40**
 *  Språk
 * [English (US)](https://wordpress.org/plugins/debug-bar-custom-info/)
 * Etikett
 * [debug](https://sv.wordpress.org/plugins/tags/debug/)
 *  [Avancerad vy](https://sv.wordpress.org/plugins/debug-bar-custom-info/advanced/)

## Betyg

 5 av 5 stjärnor.

 *  [  1 5-stjärnig recension     ](https://wordpress.org/support/plugin/debug-bar-custom-info/reviews/?filter=5)
 *  [  0 4-stjärniga recensioner     ](https://wordpress.org/support/plugin/debug-bar-custom-info/reviews/?filter=4)
 *  [  0 3-stjärniga recensioner     ](https://wordpress.org/support/plugin/debug-bar-custom-info/reviews/?filter=3)
 *  [  0 2-stjärniga recensioner     ](https://wordpress.org/support/plugin/debug-bar-custom-info/reviews/?filter=2)
 *  [  0 1-stjärniga recensioner     ](https://wordpress.org/support/plugin/debug-bar-custom-info/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/debug-bar-custom-info/reviews/#new-post)

[Se alla recensioner](https://wordpress.org/support/plugin/debug-bar-custom-info/reviews/)

## Bidragande personer

 *   [ FitWP ](https://profiles.wordpress.org/fitwp/)
 *   [ Anh Tran ](https://profiles.wordpress.org/rilwis/)

## Support

Har du något att säga? Behöver du hjälp?

 [Visa supportforum](https://wordpress.org/support/plugin/debug-bar-custom-info/)

## Donera

Skulle du vilja bidra till utvecklingen av detta tillägg?

 [ Donera till det här tillägget ](http://www.deluxeblogtips.com/donate)