|
|
IronRuby > Documentation > Frequently Asked Questions
Frequently Asked QuestionsFrom $1Q. Why are line numbers in backtraces inaccurate sometimes?A. IronRuby uses DynamicMethods for compiled code. The CLR does not support associating debug information with DynamicMethods. In such cases, the line number will refer only to the start of the method. (Bug link) Backtraces are accurate for interpreted methods. IronRuby always interprets a method a few times before compiling it. So you may see that the backtrace is initially accurate, but later refers to the start of the method. You can use "ir.exe -D" to get accurate backtraces.
Tags:
|