Exception breakpoints are ignored by RubyMine
I have an application that is throwing the following exception: {NoMethodError} undefined method `[]' for nil:NilClass
I created a Ruby Exception Breakpoint for NoMethodError
When I run the application in Debug mode in RubyMine, the application is not suspended when the exception is raised
What am I missing? I would like the program to be suspended where the exception is raised, so I can see exactly where in the code the exception is being raised.
Is there a different way of doing this? Could I use a Watch instead?
Please sign in to leave a comment.
Hi,
such breakpoint is supposed to work, so it looks like a bug for me.
Could you please provide more information: what ruby version are you using, what OS, what kind of app are you debugging (Rails, plain Ruby, something else).
Also could you please enable verbose mode for our debugger (see Settings|Debugger|Ruby) and provide complete content of debug tool window.
Regards, Oleg.
Have exactly the same issue

I've set several Exceptions to do breakpoint - nothing works:
> Could you please provide more information: what ruby version
ruby 2.0.0p481 (2014-05-08 revision 45883) [i686-linux]
> what OS
rails runs on Ubuntu (Vagrant):
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
RubyMine runs on OsX:
Software:
System Software Overview:
System Version: OS X 10.10.1 (14B25)
Kernel Version: Darwin 14.0.0
Boot Volume: MacOS
Boot Mode: Normal
Secure Virtual Memory: Enabled
Time since boot: 13 days 20:12
> , what kind of app are you debugging (Rails, plain Ruby, something else).
Rails 4.1.2
> Also could you please enable verbose mode for our debugger (see Settings|Debugger|Ruby) and provide complete content of debug tool window.
As far as I can see you have filed https://youtrack.jetbrains.com/issue/RUBY-16232 about the problem, so let's continue our discussion there.
Regards, Oleg.