Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by paolo_lionhg · Dec 21, 2015 at 01:09 PM · visualstudiodebug.log5.3loggingintellisense

Debug.logger

I am really really really annoyed by this. Ever since Unity 5.3 this little piece of garbage keeps popping up in my intellisense for visual studio.

I normally just type d + . + l and this gives me Debug.Log. Now I have to type d + . + shift + l. It doesn't seem much but it's really annoying! It makes me want to stop coding and think about how useless is this logger! What is the logger even for? You know what, it doesn't matter because I would be using Debug.Log more often than Debug.logger.

What's worse is often times I would forget pressing shift, so it would give me this Debug.logger. Now I have to press backspace 6 times + shift + l.

I tried my best to move on. I tried to use print. But it just doesn't feel right....I miss my Debug.Log.

I swear whoever made this Debug.logger accessible is Satan.

Does anyone know how to remove this from visual studio intellisense?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Addyarb · Dec 31, 2015 at 04:54 PM 0
Share

I'm a debug.log guy and I sympathize with you 100%. I've replaced 4 'backspace' keys already..

Seriously though, I suppose we'll have to adopt print. I always thought of it as a JS/Unity script convention.

avatar image grizzly · Jan 02, 2016 at 07:24 PM 0
Share

I'm not surprised to find others "suffering" ;p with this relatively $$anonymous$$or, but majorly annoying 5.x addition. Please UT, bring back "d+.+l" !

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by wibble82 · Dec 21, 2015 at 01:25 PM

I'm afraid you'll have to get used to it! 'logger' is the 'default' logger that the debug functions output to, though I'll confess there seems to be little use exposing it, as (according to the documentation at least) you can't change it.

Satanic accusations aside, if you personally can't get used to pressing shift+l, maybe write your own extension method called 'Debug.log' to beat logger! Or create a 'print' extension method.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by paolo_lionhg · Dec 21, 2015 at 04:37 PM

lol the solution

 class Debug
     {
         public static void Log(string s)
         {
             Debug.Log(s);
         }
     }

Thanks for the idea @wibble82. Now the the Debug class doesn't have the other junk that it had. I should have been doing this before.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Addyarb · Dec 31, 2015 at 04:42 PM 0
Share

Unfortunately this won't take you to the proper line of code if you click it :/ Trading in one annoyance for another.

avatar image paolo_lionhg Addyarb · Jan 02, 2016 at 07:31 PM 0
Share

yes. double clicking in the editor will not bring you to the line of code. you need to trace it by looking at the calls.

but scrap this solution. i tried to build my android game using this and it crashes. i forgot the error. just don't use this.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

VSC and Unity 0 Answers

How do you get OutputDebugString to show up in the Visual Studio output window? 0 Answers

Visual Studio Code Intellisense not working with Unity 2020.1 with Mac 1 Answer

Visual Studio 2017 (CE) Intellisense missing information (descriptive text), how to turn it on? 1 Answer

Constant Intellisense Auto-Completing in UnityVS 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges