开发者

How to stop with debugger on NoMethodError in NetBeans when running Ruby?

开发者 https://www.devze.com 2023-01-16 00:43 出处:网络
Netbe开发者_如何学Cans 6.9 JRuby 1.5.0 rails 2.3.4 Error example: NoMethodError in Report#week Showing app/views/report/_list_record.html.erb where line #26 raised:

Error example:

NoMethodError in Report#week

Showing app/views/report/_list_record.html.erb where line #26 raised:

You have a nil object when you didn't expect it!
The error occurred while evaluating nil.sorting

....

I can set up breakpoints, the debugger works fine. But when I have a NoSuchMethod error my browser receives a nice HTML page (see above) which informs me about the problem.

It is not enough for me. I want the NetBeans IDE / Debugger to stop where the error occurred. I want an interactive call-stack with variables on every level as if I would place a breakpoint at the right time at the right place.

(Every other development environment knows that and does that by default. I wonder why this one does not...)


have a look here: Is there any way to start the Ruby debugger on exception?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号