npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

com.ennerfelt.powerdebug

v0.2.11

Published

Adds a wrapper around the UnityEngine.Debug.log methods to make it possible to set a threshold level for if they should show up in the console or not.

Downloads

2

Readme

Power Debug

PowerDebug is a Unity package that gives the user the ability to set a threshold for what level of message logging that should be done to the console. This is created with the intention of disuading developers from removing Debug.Logs from their code when they feel like their message is no longer needed because the code runs just fine. Having your program give you verbose descriptions of what's happening is your best tool for figuring out what is going on and should not be pruned because the code works at the moment.

This package works as a wrapper, so instead of calling Debug.Log(object message, Object context)you should be calling PowerDebug.Log(object message, Object context, LogThreshold) so that you can decide the treshold of when this shall be logged and not.

Features

  • Set logging thresholds to each one of your log messages to decide at what level of verboseness it will be logged to the console.
  • Set the logging verboseness in (Edit > Preferences > PowerDebug)

Installation

To install PowerDebug in your Unity project, follow these steps:

  1. In Unity, open the Package Manager window (Window > Package Manager)
  2. Click the Add package from git URL... button
  3. Paste the following URL in the text field: https://github.com/AlexEnnerfelt/PowerDebug.git
  4. Click the Add button to add the PowerDebug package to your project

Usage

To use PowerDebug, simply replace your Debug.Log(object message, Object context) with PowerDebug.Log(object message, Object context, LogThreshold). You can also call this function without a log threshold and in that case it will default to the lowest threshold so that is is always logged unless you have the logger turned off.

If you only use Debug.Log in a particular document, a recommendation would be to add using Debug = PowerDebug at the top of the document so that you can log messages with the familiar names.

Documentation

For more detailed information on using PowerDebug, please refer to the documentation on our website.

Support

If you need help with PowerDebug, please contact us at [email protected]. We will be happy to assist you with any issues you may have.

Contributing

We welcome contributions to PowerDebug! If you have a bug fix or new feature that you would like to contribute, please open a pull request on GitHub. For more information, please see our contributing guidelines.

License

PowerDebug is released under the MIT license.