Code Monkey home page Code Monkey logo

needle-console's Introduction

Needle Console

License

Needle Console is available on the Asset Store for commercial use.
Other versions are only allowed to be used non-commercially and only if you're entitled to use Unity Personal (the same restrictions apply).

Feature Overview

  • Improved stacktrace readability
  • Syntax highlight stacktraces
  • Log background colors by type (e.g. warning, error, compiler error)
  • Console log prefixes (only visually in editor)
  • Filter logs: Hide or Solo (e.g. by package, file, line, message)
  • Collapse individual logs
  • Ping script files from log
  • Console hyperlinks
  • Editor-only logs (extensible)
  • Fixes to source code links

How to Install

Add from OpenUPM | via scoped registry, recommended

This package is available on OpenUPM: https://openupm.com/packages/com.needle.console

To add it the package to your project:

  • open Edit/Project Settings/Package Manager
  • add a new Scoped Registry:
    Name: OpenUPM
    URL:  https://package.openupm.com/
    Scope(s): com.needle
    
  • click Save
  • open Package Manager
  • click +
  • select Add from Git URL
  • paste com.needle.console
  • click Add
Add from GitHub | not recommended, no updates through PackMan

You can also add it directly from GitHub on Unity 2019.4+. Note that you won't be able to receive updates through Package Manager this way, you'll have to update manually.

  • open Package Manager
  • click +
  • select Add from Git URL
  • paste https://github.com/needle-tools/console.git?path=/package
  • click Add

After installation, by default all logs and exceptions will be demystified in the Console.
Syntax highlighting will also be applied, and can be configured to your liking.
Settings can be configured under Edit > Preferences > Needle > Console.

How To Use 💡

Please open the Package Readme for more information.

Supported Versions

Unity 2019.4 until 2021.1

Contact ✒️

🌵 needle — tools for unity@NeedleTools@marcel_wiessler@hybridherbst

discord online

needle-console's People

Contributors

alderoberge avatar clandais avatar hybridherbst avatar marwie avatar neon-age avatar thexrmonk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

needle-console's Issues

Can't get Code Preview to work

It shows up only on messages that weren't demystified (right after installation), and only when log-view is focused.

GIF 10 03 2021 20-53-22

Code Preview Key is not assigned.

Support Logging with custom class other than "DebugEditor"

First I want to say thank you for such an amazing console, all other assets are pretty fugly. I like the aesthetics of this one more.

https://www.reddit.com/r/Unity3D/comments/17eikh0/i_found_a_way_to_go_to_the_right_line_in_your/

Unity ignores classes that end with "Logger" and method starting with "Log" in it's console logging stack trace, allowing to double-click a line in the console and being shown the right call. I see that this philosophy is already implemented with DebugEditor.Log

I want to use a custom class (not named DebugEditor).

Maybe you could check if the class ends with Logger and the method starts with Log to match Unity's default console behavior?

image

Ability to filter by [Channel]

It would be great to be able to filter like this :

        Debug.Log($"[Setup] Setting current setup to {setupInfo.Type.Name}.");

And then in the editor console :

image

Unity 2021.3.24f1 : Script Error

Upon upgrading to Unity 2021.3.24f1, the Unity Console complains with:

Library\PackageCache\[email protected]\Editor\CustomConsole\ConsoleList.cs(545,45): error CS7036: There is no argument given that corresponds to the required formal parameter 'shouldStripCallstack' of 'ConsoleWindow.StacktraceWithHyperlinks(string, int, bool, ConsoleWindow.Mode)'
Looks like it goes into the #else of #if UNITY_2022_2_OR_NEWER

#if UNITY_CONSOLE_STACKTRACE_TWO_PARAMETERS
    #if UNITY_2022_2_OR_NEWER
      // mode doesn't matter when shouldStripCallstack is false
      var stackWithHyperlinks = ConsoleWindow.StacktraceWithHyperlinks(message, 0, false, ConsoleWindow.Mode.Log);
    #else
      var stackWithHyperlinks = ConsoleWindow.StacktraceWithHyperlinks(message, 0);
    #endif
  #else
  var stackWithHyperlinks = ConsoleWindow.StacktraceWithHyperlinks(message);
#endif

Cannot use search bar if docked under game view?

Not sure how this is happening but I am in 2022.1.20f1 and can share a repro - using Needle Console 2.3.12 the search bar doesn't receive any keyboard input when highlighted if the Console is docked right under the game window in such a layout, the scene view to the left of the game view seems to receive the keyboard inputs when typing as shortcuts in scene view work.

Not sure if this is a Unity editor issue or Needle Console.
image

If it is undocked or floating, the search bar works.

[Support Unity Logging]

The Logging package is a versatile and highly configurable structured asynchronous logging solution. In addition to what you would expect from a traditional logging package (level, timestamp, stacktrace), it contains various ways to stream and record the logs such as StdOut, text or JSON files, DebugLog, and your own custom implementation. You can also individually or collectively configure these logs.

https://docs.unity3d.com/Packages/[email protected]/manual/index.html

It can be used to replace the default Debug.Log.

my ideas and issues

  • No repaint on syntax color undo/redo, messed up colors when switching between themes

  • Syntax colors alpha-blending support

  • Ability to remove return types / namespaces / any other syntax parts:
    image

  • Make Type.Method right-aligned instead of left:
    image

  • "Show Filename" disables the prefix drawing part completely

bandicam.2021-06-19.20-36-17-769.mp4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.