What generally happens instead is they'll screen share and show me some code they're working on then I'll try to problem solve in my head and read aloud the code they need – "Add a new method below line 50", "create a new variable", "return an arrow function". This works fairly well with other senior devs because I can communicate at a higher level what's need and they'll write something that functionally resembles what's in my head. But I find this can get extremely complicated when the developer isn't that well versed in the syntax or libraries I'm proposing they implement and most of the time I'll end up reciting code from my head symbol by symbol – "open close brackets, space, equals, greater than". And wherever possible I'll copy small chunks across in Slack for them to copy paste.
This works, but it's not the best experience either for me or the developer I'm trying to help. Ideally what I'd love is a super simple way to remotely edit code in whatever IDE they're using from a Slack Huddle call, but I'm not sure any such thing exists (or would be possible).
Does anyone have any suggestions for better ways to remotely debug with other devs? Keen to know what works well for others here.