Plugin yìí kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress. Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

dbug

Àpèjúwe

dbug() dlog() ddbug()

dbug Basics

Debugging

Call with up to three arguments:
<?php
// output a variable
dbug( $var );

    // output a variable with a title           
    dbug( $debug, 'Testing' );

    // output a variable with a title and information from the last 6 steps from debug_backtrace
    dbug( $somevalue, 'Trying to figure some shit out', 6 );
}

or use ddbug to dbug and die.

Error Logging

Call with up to three arguments:
<?php
// log a variable
dlog( $val );

    // log a variable with a title
    dlog( $buggy, 'what is $buggy' );

    // log a variable with a title into the file 'bug_trap' 
    dlog( $somevalue, 'im desperate', 'bug_trap' );
}

Production / Development Environments

you should have them

Ìgbéwọlẹ̀

  1. Place entire /dbug/ directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Set logging to screen or to to files, and the larget file size for logs
  4. Write some code
  5. CanÌtumọ̀ Yorùbá: ’t figure something out? dbug( $var )
  6. Need to write yourself a note? dbug( $var, ‘this is super cool’ )
  7. How many lines of backtrace do you need? dbug( $var, ‘oh wow!’, 25 )
  8. Want to dbug and die? Use ddbug()

FAQ

Installation Instructions
  1. Place entire /dbug/ directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Set logging to screen or to to files, and the larget file size for logs
  4. Write some code
  5. CanÌtumọ̀ Yorùbá: ’t figure something out? dbug( $var )
  6. Need to write yourself a note? dbug( $var, ‘this is super cool’ )
  7. How many lines of backtrace do you need? dbug( $var, ‘oh wow!’, 25 )
  8. Want to dbug and die? Use ddbug()
This doesnÌtumọ̀ Yorùbá: ’t do anything!

well

Why did you create dbug?

Because I cant write code without it

Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

Àwọn Olùkópa & Olùgbéejáde

“dbug” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

Túmọ̀ “dbug” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

1.9.8

change create_function for php >= 7.2

1.9.5

require php 5.4

1.9.3

composer tweaks

1.9.2

Add composer info, autoload

1.9

Log viewer in admin

1.89

Slightly better class method information

1.88

Moved admin styles inline because of reasons

1.87

Improved default log filesize logic, added ddlog()

1.86

Registered css for mu-plugins correctly

1.85

Fixed offset in backtrace

1.81

Fixed sloppy error which disabled admin screen 🙁

1.8

Code cleanup, mostly in backtrace

1.74

Whoops, didnÌtumọ̀ Yorùbá: ’t add _htaccess.php to SVN :-p

1.73

Fixed creating .htaccess file when using mu-plugins

1.72

Set dbug to never show on screen if logs are turned on, added REQUEST_URI to all logs

1.7

Moved admin settings into separate class, cleanup of core code

1.55

Fixed using float as argument $k in dbug

1.54

Fixed deprecated argument in add_options_page()

1.53

Fixed a bug in detecting MU

1.52

Fixed a bug in logging integer keyed arrays

1.5

Changed some things, I donÌtumọ̀ Yorùbá: ’t remember what

1.4

Better handling for MU / single blog.
All options and settings for MU are now global, saved in blog #1 database.

1.32

Added ddbug() (dbug and die)

1.31

fixed behavior in error handlers to return false, try /catch blocks work as expected.

1.2

last bit of namespace pollution cleaned up
check for PHP 5
css tweaks

1.1

added preference for log filesize

1.08

code cleanup, reducing namespace pollution

1.0

yes, its here