- Home /
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.
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.
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.
Your answer
Follow this Question
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