Why does my rdebug session say "*** No sourcefile available"
Asked Answered
D

1

5

I'm not sure what the pattern of behaviour is but some programs - notably simple rack.ru based ones running in thin - can't easily be debugged. When a breakpoint is tripped, no source is available

Note this isn't the same as this other S.O. [issue][1]

[1]: In ruby, why does my IRB interactive debugging session always say "No sourcefile available" session-always-say-no-sourcefile

Didst answered 30/11, 2009 at 11:31 Comment(0)
D
7

err, actually found the source of the problem. I had a Dir.chdir buried in my code. Any debugger call after that couldn't find the source, a call before worked fine.

Hopefully that helps somebody at some time.

Didst answered 30/11, 2009 at 12:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.