realgud / realgud

The Grand "Cathedral" Debugger rewrite
GNU General Public License v3.0
884 stars 85 forks source link

realgud:pdb-remote, mapping between local path and remote path #140

Open hackinvalid opened 8 years ago

hackinvalid commented 8 years ago

@rocky I am using rpdb to set up a remote pdb debugging session. Using telnet 127.0.0.1 4444 via running realgud:pdb-remote works.

But breakpoints are being set with the local path. I think there should be a mapping between local path and remote path, just like the likes of PyCharm and Netbeans provide.

rocky commented 8 years ago

pull requests are welcome.

rogsme commented 3 years ago

I know this issue is very old, but @eksop, have you found a workaround? Thanks :smile:

rocky commented 3 years ago

I know this idea is old, but pull requests are still welcome.

Ask not what this open source project can do for you, but what you can do for it.

rocky commented 3 years ago

@rocky I am using rpdb to set up a remote pdb debugging session. Using telnet 127.0.0.1 4444 via running realgud:pdb-remote works.

But breakpoints are being set with the local path. I think there should be a mapping between local path and remote path, just like the likes of PyCharm and Netbeans provide.

I should also mention that when I ran into this problem using my trepan debuggers, I just added the remap aspect inside the trepan debugger using set patsub.

rogsme commented 3 years ago

I might have to learn elisp, but I'll give it a shot. Thanks @rocky!

rocky commented 3 years ago

I might have to learn elisp, but I'll give it a shot. Thanks @rocky!

That's the spirit!

(By the way, no one is born knowing elisp. Richard Feynman famously said, "what one fool can learn, so can another".)