Snippets Collections
import pdb
import traceback


old_format_exc = traceback.format_exc
def format_exc(*args, **kwargs):
    print("MENG WAS HERE")
    pdb.post_mortem()
    return old_format_exc(*args, **kwargs)

traceback.format_exc = format_exc
//logs a table of users who use Yuan currency, displays all info
const onlyYuanUsers = users.filter( user => user.currency === "Yuan Renminbi")
console.table(onlyYuanUsers)

//just display iddx, id, and currency
console.table(onlyYuanUsers, ['id', 'currency'])
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
star

Wed Dec 22 2021 00:17:32 GMT+0000 (UTC)

#python #debugging
star

Tue Jun 29 2021 10:26:39 GMT+0000 (UTC) https://dev.to/hymanaharon/why-i-will-no-longer-be-using-console-log-to-check-react-state-updates-29el

#console #debugging #react.js
star

Tue Jun 08 2021 20:16:08 GMT+0000 (UTC)

#php #debugging

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension