-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
Will not stop at breakpoints with symlinks involved in directories #147
Comments
@brettwilliams Sorry I totally missed this issue. Great report, thanks! If you want to give it a try, this shouldn't be a really hard one to tackle! |
@deivid-rodriguez just to share our experience with debugging symlinked files. Tracepoint API report file name which was used when the file was loaded first time. In some cases it will be symlinked name in others - real (non-symlinked) name. In ruby-debug-ide/debase we always use resolved name to make this work reliably. Hope this will be useful for you. |
@os97673 Thanks a lot, your input an experience with the other ruby debugging tools is always appreciated. @brettwilliams Could you try latest master and see if it fixes your issue? I've added a possible fix following @os97673 advice but was too lazy to check if it works or write a test... |
any time :) |
I'll try to check when I'm able. I'm pretty sure that the normalize files On Wed, Jul 29, 2015 at 5:18 AM, David Rodríguez notifications@github.com
|
Attempt #147 commit fixes the issue in my small test case. Thanks! On Wed, Jul 29, 2015 at 7:48 AM, Brett Williams brett@brettandbecky.net
|
@brettwilliams I missed this message and I've done a couple other changes in that area. Could you try, again, against last master and if fixed, close this issue? Thanks a lot! |
@deivid-rodriguez latest master passes test |
I am working in linux/x86_64 with ruby 2.1.6. A simple ruby script is in a directory which looks like this:
I then call this program via PATH in two ways, first with the direct path, and secondly through the symlink. The first one works as expected, the second does not. You can see that if I do so with the symlink, that breakpoints do not fire.
Now for the second run, where I call it using PATH through a symlinked directory:
Note that this is further complicated by the fact that even cutting and pasting the file and line number that byebug thinks it is currently on (i.e. when hitting an explicit
byebug
statement) will not give the correct result.If all symlinks are resolved, it seems to work ok.
Is there a way to make this work better, or a best practice that I can follow?
Thank you for your contribution and consideration.
The text was updated successfully, but these errors were encountered: