- Home /
Breakpoints not working ! (monodevelop)
Hi, today breakpoints in mono suddenly stopped working. This is a major problem, I can't continue developing like this. I searched for fixes but could not find anything that works for me. Is this a know problem? How can I fix it?
@pixartist I am having the same problem. I see a red dot with a white circle in the middle ins$$anonymous$$d of a 'target' symbol. Did you ever figure out a way to fix this?
UPDATE: Found this http://answers.unity3d.com/questions/578617/breakpoints-stopped-triggering-in-monodevelop-401.html and it solved my problem for now.
Answer by kacyesp · Aug 21, 2014 at 09:37 PM
I found a solution that worked for me on this forum: http://forum.unity3d.com/threads/4-3-x-monodevelop-breakpoints-not-working.215444/
Delete all files in Library/ScriptAssemblies.
Then right click on the folder containing your scripts and click reimport or restart Unity.
Source of the problem: You recompiled the code while debugging. Just don't change the code while Monodevelop is attached to the process. Detach it before making any changes. This won't always cause the problem to happen. There is a chance it will cause it depending on what's going on under the hood of Monodevelop, which is why your breakpoints will "sometimes" not work.
Thanks, this is the first solution to this problem that has worked!
Please make this a comment to the actual solution.
Step 2 alone worked for me, thanks! BTW, I did change code in $$anonymous$$ono and build while debugging.
This didn't work for me (in a newer version), but then I realized that my script was no longer attached to my script manager object ... re-attaching it got all the breakpoints working again. The mystery is why they were working and suddenly stopped, maybe it was attached and it detached for some reason or maybe I just had all my breakpoints on other scripts and tricked myself into thinking it was attached all morning ... don't know, but this is something else to check.
A common mistake is attaching a script at runtime. You think you have attached it to the object but when you stop playmode the script is gone since you attached it at runtime. That's why it's important to setup a noticeable playemode tint color. I usually use some sort of light red color.
Your answer

Follow this Question
Related Questions
Only detecting collision from the bottom. 2 Answers
Unity project wont open 4 Answers
SetActive is broken 0 Answers
NullReferenceExceptions. Dont know how to fix... 3 Answers
Camera/Movement Script not working 1 Answer