breakpoints stopped working
Yesterday breakpoints worked, today they do not. I'm using Unity v5.3. So frustrating.
Could a problem with line endings be causing this? How do I know?
I have searched the forums. Solutions did not work.
If I close Unity after opening MD (per one suggestion), I see an error dialog that says:
Unity Editor not found
Answer by jackj31416 · Dec 17, 2015 at 06:21 PM
Breakpoints and debugging work fine today (Windows, using MonoDevelop).
I tried fixing EOLs before testing this morning, so I'm not 100% sure what really fixed it.
I tested by opening the Unity editor to my project, using Assets->Open C# (configured to use MD on Windows) to open the code. I added a breakpoint, clicked the Play button in MD, clicked the Play button in Unity Editor, and behold - debugger hit my breakpoint. The sweetest things in life are the simplest.
In case it helps someone, I made sure the "core.autocrlf" git config value was setup on both my Mac and my Windows boxes. I also committed/pushed/pulled a default .gitattributes file.
Then I used Notepad++ to force Windows style EOL on one file that was using Mac EOLs. I bet this was the fix.