I'm trying to set a breakpoint every time Mutex#lock is called in RubyMine, but since mutex.rb is a stub I can't seem to do it. Anybody know how I would do this?
Asked
Active
Viewed 51 times
1 Answers
0
I ended up just defining the following in a file and putting breakpoints there:
class Mutex
alias real_lock lock
alias real_synchronize synchronize
def lock
real_lock
end
def synchronize &block
real_synchronize &block
end
end

Mohamed Hafez
- 8,621
- 7
- 41
- 49