I am having a problem debugging while using rspec. I can debug the script if I run it directly. I can stop at breakpoints, step through code, etc. If I debug with breakpoints in the same place but invoke the script through an rspec test spec, the breakpoints don't work and I get either a segmentation fault or an error code when the program terminates. If I run the rspec test script or the script, they function as expected. The problem is just with debugging. The scripts are attached.