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 Michellia · Mar 20, 2013 at 02:31 PM · monodevelop

Broken debugger

Just a question. How are you supposed to debug unity/monodevelop if it crashes on the break points.

here is where it crashes 4 times in a row.

 //declarations
 private List _itemList;
 private int _totalItems;
 private string[] _itemNames;
 
 
 // this is in my startup/initialize section
 // Load the item list
 _totalItems = Globals.TotalNumberOfItems;  // this is set to 4
 _itemList = new List( _totalItems ); // an array declared as 
 _itemNames = Globals.ItemList;
         
 for( i = 0; i < _totalItems ; i++) // breakpoint is here
 {
    _itemList[i] = (Texture2D)Resources.Load( _itemNames[i], typeof(Texture2D));
 }

this is a really bad program. you have to stop unity to run the debugger in mono.

and every time I stop unity I have to reset my general setting in mono to use .net 4.0 since it cannot remember what I set it too.

Comment
Add comment · Show 1
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 GuyTidhar · Mar 20, 2013 at 03:45 PM 0
Share

Unity works with .net 2.0 and not 4.0, so you shouldn't set mono to .net 4.0. That's probably why it resets.

Are you using the mono which was bundled with unity or did you happen to install the latest mono from mono's website?

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by whydoidoit · Mar 20, 2013 at 04:33 PM

Looks like you aren't really debugging the right way. Don't build in MonoDevelop, let Unity do the build and attach to the Unity process.

See this Unity Gems article

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 roojerry · Mar 20, 2013 at 04:42 PM 0
Share

really handy link. I learned something new today. Thanks

avatar image
0

Answer by Michellia · Mar 22, 2013 at 01:49 PM

ok will give that a try.

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

Issues using the 'new' keyword 3 Answers

A node in a childnode? 1 Answer

monodevelop 4.0.1 run with empty 0 Answers

Please anyone know about ads banners.. how do we implement in the unity3d free version... 1 Answer

Spawn error 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