Show the user’s application in the source window and select the correct ...

...trace list, closes #17312 

This fixes rails without web-console, I will put a pull request in rails/web-console as it has the same issue