Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 XienDev · Nov 18, 2012 at 09:11 AM · errordebuglog

`UnityEngine.Debug' does not contain a definition for `LogException'

Hi guys, this is a very strange error i got when trying to play game i'm making. Monodevelop sees Debug.logException, but unity Doesn't:

alt text alt text

2.png (19.1 kB)
1.png (59.0 kB)
Comment
Add comment · Show 4
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 XienDev · Nov 18, 2012 at 09:18 AM 0
Share

What can i do to make that working right ?

avatar image XienDev · Nov 18, 2012 at 11:12 AM 0
Share

ps. I haven't named my class like Debug, and not in namespace of unityengine...

avatar image XienDev · Nov 18, 2012 at 11:13 AM 0
Share

It's not an important thing, i used LogError with my parsing exception

avatar image FakeBerenger · Nov 19, 2012 at 08:19 AM 1
Share

UnityEngine.Debug.LogException doesn't exist. Something / someone else created a class called debug and re-implemented the log functions, apparently.

------- Edit

Actually, I'm wrong : http://docs.unity3d.com/Documentation/ScriptReference/Debug.LogException.html

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Loius · Nov 19, 2012 at 08:29 AM

Nice screencap :p

You can use exception.message in a Debug-Log statement to get the same effect. Not sure why LogException isn't working, though.

Comment
Add comment · Show 1 · 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 XienDev · Nov 19, 2012 at 10:58 AM 0
Share

I'm using it, but next problem more complex: http://answers.unity3d.com/questions/350195/stack-trace-returns-null-wtf-with-my-unity-today.html

avatar image
0

Answer by Poemind · Jan 14, 2014 at 12:54 PM

So, I'm not seeing an answer as to why Debug.Log suddenly isn't working?
If I usine UnityEngine.Debug.Log(); it works. But why should I have to do that when I've already placed the Using Unity.Engine declaration at the top of my file?!

I've just updated to 4.3.2f1, so I'm assuming that this is something that is cropping up because of that. Very frustrating, as I was just trying to make a video for my students on just how to output to the console and in the middle of the video I have to stop to figure out why this very simple thing is not working.

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 devotionsolutions · Dec 10, 2015 at 05:19 PM

It's been a year since you posted this issue, but I've found the same issue and the reason behind this problem is a 3rd party library. In my case, Amplify Color is adding a class also named Debug, with a Log method as well, and it's not declared within a namespace either..

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

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

13 People are following this question.

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

Related Questions

What to do when there is an error at runtime 1 Answer

Prevent editor-prev.log file from getting too big 1 Answer

C# script failing silently? 0 Answers

Debug.Log Override? 3 Answers

Is there a way to set Unity to write message log when the calculation has Infinity or NaN? 3 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