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 ExcelsiorH · Sep 22, 2011 at 06:59 AM · iphonemonodevelopdebugdebugging

Issue Debugging iPhone with Monodevelopment

I'm having a hard time getting debugging on the iPhone working with mono development . I followed the steps listed here, but can't get it to work:

http://unity3d.com/support/documentation/Manual/Debugger.html

I made it work debugging the build in Unity player, but when I do the iPhone steps I get stuck at attaching. When I set it to attach and select my iPhone, it sits for a second then I see: Loaded assembly: /preview/var/mobile/Applications/

Then it sits for another second before listing all of my break points as: Could not insert pending breakpoint at ' '. Perhaps the source line does not contain any statements, or the source does not correspond to the current binary.

So what am I missing here? I've tried it with several files and nothing seems to let it attach correctly.

Thanks in advance for any help.

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 ExcelsiorH · Sep 22, 2011 at 08:01 PM 0
Share

Ok - so after more trial and error with other files in the project I got it to resolve a breakpoint: Resolved pending breakpoint at ' ' to ...

And I've verified that the apps stops running when it hits a resolved breakpoint. So I know for a fact I'm attaching right and debugging.

What I don't understand is why some work and some don't? So are there known setups for which you can't debug?

The thing(s) that make the un-debuggable files different, that I can think of, are:
Singletons - these are my input managers and such
They are not created in the current scene - they are all spun up in the loading scene and persist through scene changes with DontDestroyOnLoad()

I'm able to work around these limitations now that I know about them - but I'd like to understand why I'm having the issues.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by ExcelsiorH · Sep 25, 2011 at 08:10 PM

ok - I'm dumb and blind. Not sure how I managed it, but every time I tried debugging a problem file I was never putting a break point on actual code. Must have clicked 50 different bookmarks in those files and only been marking comments.

Guess I assumed mono development was dropping it to code or just not noticing I was off - oh well. Problem solved.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Debugger not working in unity3D 4.1.3f 1 Answer

debugger halt after start(), can only resume in update 0 Answers

How to add watch in monodevelop? 0 Answers

Editing code in debug mode? 2 Answers

How do you attach the script debugger to iPhone? 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