I tried Monitor but it doesn't show variable values.
I have a string of lines (_emailBody) that might include duplicates (because users). So to remove the duplicates I have:
Set(_lines, Split(_emailBody, Char(10)));
Set(_distinct, Distinct(_lines, Text));
Set(_concated, Concat(_distinct, Char(10)));
Set(_emailBody, _concated);
But it doesn't work, and I have no idea why not because I can't see what any of it is actually doing because there is no debugger. Trace() doesn't help either, because these are objects and I don't know how to convert them to strings.
This would take like 30 seconds in C# but in PowerApps I'm an hour into it and completely stuck.