-
-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the byebug line # to make the output clickable #553
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @senhalil, I like this 👍.
Can you rebase the PR, fix the tests and add a changelog entry under the "### Added" section explaining why we're doing this?
Adding the exact line number of the byebug statement to the end of the filename on the output makes the statement clickable in IDE's and editors supporting this functionality. Currently clicking the path goes to the top of the file. With the modification, clicking takes the user to the exact byebug line in the file.
I realised fixing the tests is not as straight forward as I thought at the beginning. The complication comes from the fact that one can use Then the output becomes as follows:
13 is still useful for terminal debug sessions since it tells the next line to be executed; however, then the tests needs to be modified as such:
I don't know if you are okay with this modification. To be honest, if someone is using |
Hi @senhalil! So... It sounds that just recalculating the middle line every time like you did in the beginning is a better option after all? |
Hi @deivid-rodriguez In my opinion, your suggestion is still the superior option, because it gives a useful info -- i.e., next instruction to be executed --, my original way didn't give any info (except average of two numbers :) ). If someone is using So I suggest keeping the current version if you are not oppose to it. PS: Is it me who needs to mark "Changes requested" as resolved or you? |
Yeah, right. I'm still worried that this might confuse some users into thinking this is a bug and we might get reports about it. Is there any way we can clarify the status line in this regard? Maybe something like:
Or something like that? |
I think it's me 👍. |
I understand.
I am happy with that wording, if you are. It is clean and clear. Will make the necessary modif and commit this we |
Adding the exact line number of the byebug statement to the end of the filename on the output makes the statement clickable in IDE's and editors supporting this functionality. Currently clicking the path goes to the top of the file. With the modification, clicking takes the user to the exact byebug line in the document.
For example in vscode it looks like follows: