- Home /
Breakpoints stopped triggering in MonoDevelop 4.0.1
Hello! Been using Unity for a while now, and with the latest update we also received a new version for MonoDevelop. Breakpointing before 4.0.1 has been a charm, and attaching debugger hasn't been a problem. Now, however, it seems like I cannot trigger a breakpoint consistently. Sometimes it works, sometimes it does not. It's rather random in this regard, and I'm having trouble finding a correlation for the bug. I've tried to reinstall Unity and MonoDevelop to no avail. I've also repeatedly cleaned/rebuilt the solution, also to no avail. Does anyone else have these issues? I'm using Windows 7.
I get this as well. It makes it very difficult to debug. I think your work around works...but its seems to be hit or miss.
Your fix works for me. What an annoying bug. It seemed to start happening to me after I hit a NullPointerException in the file.
@AC$$anonymous$$ your answer was not actually an answer to this post, I converted to a comment. Please use comments ins$$anonymous$$d :)
Same issue here. Any fix on this? Seems like it's been a bug for a while now.
Answer by Omberone · Nov 19, 2013 at 10:40 AM
I solved it.
It appears that when this breakpoint-error occurs I have to go into monodevelop, alter a random file, focus unity, let it compile, go back into monodevelop and revert it (ctrl-z), save, focus unity, let it compile, and then attach a debugger. Let me know if you find a better solution.
Awesome. Weird but awesome ! Thanks a lot, was stucked with it.
This problem happened to me recently in Unity 5.04.0f3 and this solution fixed it for me. Just wanted to let people know that this 1) Is still happening, and 2) This may be your temp solution.
Answer by Archie888 · Jul 09, 2014 at 05:00 PM
When this happens to me, there is usually first a modal pop-up in Unity, talking about some issue with doing something with a file. If I press cancel in this pop-up, the debugging stops working normally. I noticed that if during this pop-up I focus on Monodevelop and close it (save files first!), focus on Unity, press Re-Try in the pop-up, and then re-open Monodevelop, I can debug normally again (attach to process first, of course).
Just wanted to share this tip.
Answer by gooncorp · Oct 03, 2014 at 11:25 PM
thats the craziest thing i have ever heard this is clearly a broken feature why do they not just fix it? this is a necessary feature in monodevelop it breaks other features of the source code debugging as well.
Answer by PsychoPsam · Dec 10, 2014 at 02:53 AM
Yep that works for me too. When I just typed loads of spaces into another file it popped up with a dialog top right asking me to convert all the line endings which I did. Perhaps this is main problem. Anyway - that solution works.
In mono-develop open a file other than the one you are trying to set a breakpoint it, and type in some spaces somewhere (so you don't need to undo).
Save -> If the convert line endings dialog comes up ->Select convert all files.
Jump back to Unity and the little spinner down bottom right goes aroundshowing the files are being compiled.
Back in MonoDevelop hit the Play button to Attach to the unity process and the break points work.