Recently my manager has made me more of a lead role in helping shape some of the new devs on the team. I have a lot of experience with the codebase they are dealing with and so he sometimes simply lets me assign issues out.
Most of the time there are some issues of various complexity. I have no problem giving out ones that are extremely simple, but for ones that require understanding more parts of the codebase I will generally add some thoughts onto the ticket to give them a better understanding of what might be going on.
Recently for some issues, some of the new devs will naturally ask a lot of questions. I have a really bad habit of inevitably telling them what the fix should be.
What is a good balance for this? While I do want them to figure the issue out on their own, I also feel weird withholding information from them. At the same time, I think there is value to letting them figure it out on their own even if it means they might take a while to understand what's going on. Also what is the right way to respond to someone who asks a very basic question that I feel they should be able to figure out on their own?