I am trying to implement custom file path shortcuts according to the example in the documentation, but our project directory names are not so straightforward. So I need to run a shell command to grab some additional information from the filesystem in order to populate the list of paths, but it’s not working as I expect it to.
Is there a way to debug custom Ruby code like this, either by looking at a Ruby execution log, or by running the initializer as a standalone script? I tried doing the latter, but it’s clear that I’m missing some package imports. Say that I wanted to run the initializer in the documentation as a standalone script, and print debug statements to STDOUT. What packages would I have to import to get that to run?
I realize that this is a little light on details, but I would prefer not to share the code. Really, I’m just looking for some recommendations on debugging Ruby code that runs within OOD.