Whether to leave is dependent on the other options available
Every stay or go question is a comparison of various costs and benefits weighted for their relative risk or probability. Do you have equity? Would you need to move for another job? Are you an unusual presentation for a developer where you are which might make finding another job harder? All of ...
When should I decide that its good time to look for other
That depends, at least partially, on your goals.
If your goal is to never be unemployed, then you should be seeking your next job aggressively, in hopes to leave before the next round of layoffs.
If your goal is to stay where you are as long as possible (perhaps because of ...