ruby-debug / ruby-debug-ide

An interface which glues ruby-debug to IDEs like Eclipse (RDT), NetBeans and RubyMine.
https://www.jetbrains.com/ruby/features/ruby_debugger.html
Other
371 stars 83 forks source link

Support path translation for remote debugging path name mismatch #43

Closed sugi closed 10 years ago

sugi commented 10 years ago

This patch add -t --path-translation option to resolve path mismatch on remote debugging with network mounted filesystem.

For example:

In this case, some IDE can make debug connection, but they will send break point with local path (H:\app...).

To resolve this issue, I propose to add path translation option on rdebug-ide side, like;

rdebug-ide -t '\=/' -t 'H:=/home/you' app/runner

This means replace string in path with two rules (\ -> / and H: -> /home/you). It make debug works on IDE that has no path mapping feature.