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
1
Question by ArkaneX · Jun 18, 2013 at 10:56 PM · c#monodevelopdebug

When debugging, MonoDevelop cannot resolve some UnityEngine types in watch/immediate windows

When debugging a project in MonoDevelop it seems that the debugger is unable to resolve some types from UnityEngine namespace. For example, when evaluating expression typeof(GameObject) the result is "Unknown type: UnityEngine.GameObject". Note that debugger sees that GameObject belongs to UnityEngine, yet still returns error.

When typing UnityEngine and then pressing . (dot), intellisense does not display all UnityEngine members. Some of them, GameObject among them, are missing. But, assuming the current script is attached to a GameObject, then typing this.gameObject.#### (where #### can be any GameObject property), somehow refreshes the debugger, making the type visible. It is now accessible via intellisense and typeof(GameObject) no longer returns error.

To reproduce it, just create new empty project, create a cube, create a C# script and attach it to the cube. Put breakpoint inside Start method, attach to Unity Editor process and start the project. After breakpoint is hit, in the immediate window type:

 > typeof(GameObject)
 Unknown type: UnityEngine.GameObject
 > this.gameObject.active
 true
 > typeof(GameObject)
 {UnityEngine.GameObject}
 > 


Is it possible to prevent such behavior and be able to see all referenced types?

I'm observing this in Unity free 4.1.5f1 and bundled MonoDevelop 2.8.2. Clean install on Win 7 and 8, both x64.

Comment
Add comment · Show 3
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 whydoidoit · Jun 19, 2013 at 02:29 PM 0
Share

Sadly the debugger is a bit flaky (in 4.1.3 any watch evaluation caused a crash) and it appears that the, once working, collection visualizer is also still broken. Here's hoping for a fix in 4.2

avatar image ArkaneX · Jun 19, 2013 at 02:42 PM 0
Share

I guess we're lucky then, that it at least does not crash anymore :)

avatar image ArkaneX · Jan 28, 2014 at 09:11 AM 0
Share

To the guy who downvoted as a revenge for closing his question (you know who you are) - please revert it to the previous state or write what is wrong with this question.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by smishra_unity · Oct 26, 2017 at 01:42 PM

Hi @ArkaneX Getting the same Error, were you able to solve it. Can you explain me how you did it Thanks in advance

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

16 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 avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

What port does mono's debugger use 1 Answer

Distribute terrain in zones 3 Answers

how to debug in monodevelop 1 Answer

What's wrong with my script? 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