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 Smjert · Feb 16, 2011 at 03:36 PM · inspectordebugger

Unity3D 3.2, MonoDevelop debugger "inspector" problems

I'm using Unity3D 3.2 and MonoDevelop 2.4.2. When i launch Unity3D in debug mode with MonoDevelop and putting a breakpoint just after a List<> initialization (new List()), and hover the mouse pointer on the variable it says "Object reference not set to an instance of an object". Then if i add items in the List all works, but when i do something like this:

BaseUnit baseUnit = (BaseUnit)m_SelectedUnits[0].GetComponent(typeof(BaseUnit));

(BaseUnit is a MonoBehaviour i declared, m_SelectedUnits it is the list, List), and hover the mouse pointer on baseUnit it shows nothing, only the description of the variable.. this way i can't debug my problem, watching the properties of BaseUnit class etc. Is this normal? There's a way to solve?

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 yoyo · Feb 16, 2011 at 05:03 PM 0
Share

Is the message about m_SelectedUnits, or m_SelectedUnits[0]? "new List" gives you a list with no items in it, so attempting to access element [0] will be an error. What if you look at things in the watch window rather than just mouse hover, do you get different info?

avatar image mkgnzlz · Feb 16, 2011 at 06:16 PM 0
Share

Same here, been using lots of Debug.Logs(). Unity, please look at this because we have a fairly large project to debug. The watch window in our case, gives you the same error msg. Unity 3D 3.2 does seem to be crashing quite a bit more than 3.1. Thanks for any updates.

avatar image Smjert · Feb 16, 2011 at 06:21 PM 0
Share

The message is on m_SelectedUnits, in the watch window i have the same result, also if i put baseUnit (when the breakpoint is around the code where is declared/initialized) it says that baseUnit doesn't exist.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by zink63 · Feb 16, 2011 at 07:01 PM

Same problem, list is gone..i feel its 3.2 but can this be a monodev bug? Unity please help...

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 Bovine · Feb 16, 2011 at 09:57 PM

This appears to be a mono develop issue, although there is some unqualified suggestion that this was fixed in 2.4.2..

http://go-mono.com/forums/#nabble-td2968613

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 Smjert · Feb 17, 2011 at 10:48 AM 0
Share

But it's not like that.. since i have monodevelop 2.4.2... Also if you look the bug in the tracker it's a bit different from $$anonymous$$e. It's C# not C++ and it doesn't crash anything...

avatar image Bovine · Feb 18, 2011 at 10:59 AM 0
Share

It might be C++ in the link but that doesn't mean it isn't related. If I run through the debugger in Unity mono stops and tells me that some of my references are null, when clearly they are not.

avatar image
0

Answer by Tak · May 02, 2011 at 10:37 AM

This has been fixed in the edition of MonoDevelop shipped with Unity 3.3.

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

No one has followed this question yet.

Related Questions

Rotation angles not corresponding (inspector, debugging) 0 Answers

How can I attach a debugger to the code running on the editor or to the builded client 3 Answers

iOS Debugger Problems 1 Answer

Use Visual Studio to debug Unity. Cannot connect to process 2 Answers

How does one inspect static vars? 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