Hello, I've got myself in a weird situation by taking on a difficult task assigned to me (2.5 sprints ago). In the first sprint, I started the task, but I lost a lot of time investigating how that area of code works (We don't have "dev" documentation for the project), and when I started to implement the feature, I got into a lot of problems. The lead of my team helped me finish the implementation, but there were still obvious problems. Even though the task wasn't working in every case, I created the PR (as my lead suggested) and went through without problems.
After QA started testing the feature, a lot of bugs were found. I couldn't fix them or find any specific fix in the 1st sprint, or in the 2nd (so 2 sprints were failed because of my story). Now I'm in the third sprint, where I still carry this story. Usually, in the daily, I expose my problems, but I might not be so clear when explaining them. My lead in the last few days hasn't had a lot of time because this is the last dev sprint before release and other colleagues in the team have other stories to work on.
I also have to mention that the environment I have to debug in is really clunky and very slow (so it's really frustrating). Currently, I'm remote debugging a debug build on the test machine because I can't replicate the environment on my dev machine.
I'm kind of stuck in this situation, and at this point, I'm not sure if this is only my fault or not. I'm at the point where I've lost all my motivation to work, debug, or do anything about this. I'm really thinking about just resigning because I'm exhausted (to be fair, I'm not sure if I will lose a lot; in the last months, I haven't evolved so much in this role; I'm still in a junior dev role in this team with 3 years of experience, but I guess I'm not that good as a dev either).
LE: sorry for the wall of text 😦