From: Han Holl Date: 2002-06-18T06:04:17+09:00 Subject: Debug.rb and exceptions Hi, I'm trying to debug a program that uses ftools.rb to rename (mv) a file, and I get the following: /usr/lib/ruby/1.6/ftools.rb:71: `Invalid cross-device link - "/tmp/functies.20443.rb"' (Errno::EXDEV) from /usr/lib/ruby/1.6/ftools.rb:71:in `move' from trans3.rb:577:in `main' from trans3.rb:589 /usr/lib/ruby/1.6/ftools.rb:71: rename from, to I look at ftools.rb, and see that it does something like: begin rename from, to rescue begin symlink File.readlink(from), to and unlink from Because I want to mv a file between filesystems, the rename raises an exception, which the debugger catches. Question: how can I avoid this. I haven't seen anything in the debug.rb documentation (?) on this issue. It should be fairly common, I would suspect. Cheers, Han Holl