I'm seeing that a decade ago, people were using the xcode debugger. Is there a current guide to this? I've been debugging using the crash reports from OSX. I don't know how to do xcode debugging if I can't "run" my object's code in xcode.
Well xcode is still going strong, probably stronger than ever due to all the iOS development. You going to have to bite the bullet and find a mac, download xcode and install it. Then run your project in the debugger and see what it finds. You may be able to open the crash report in xcode and it might give you some useful information, but probably not much.
you get to that screen by opening the pop-up menu clicking on where it says "max-external>MyMac" in the above pic near the top left(then choose 'Edit Scheme...'), do all that and you'll see the above window drop down(this is where you edit your development/deployment scheme for building/running/testing).
for the settings, i chose 'wait for executable to be launched' but i think you can also choose "automatically"... could probably choose either option for 'debug process as' too, i forget if there are any limitations imposed when not in the root...
after that, you just hit the build/run/debug 'play' icon xcodethingamabob (my technical term for it), and if you chose "wait for executable..." XCode will say something like 'waiting to attach...' as it waits for you to launch Max with a patch that uses your external, once you do that within Max, XCode will then say something like "running..." and be able to provide debug info(all your XCode breakpoints will work, too, allowing you to pause execution and study the values of all your variables at specific samples, etc.)
This is all if your initial build doesn't fail, if it does, then you can get debug info for that within XCode in the warnings tab(looks like a triangular hazard sign up near the top of the left panel..).
Sorry if that's unclear, i can't remember where I learned this anymore(might be in an article on the site, or else Eric Lyon's book), but try what my pic above does, and it should work.
in the 'arguments' tab you can enter "open /path/to/your/maxpatch" to let max automatically run your test-patch
👆Beautiful! I always wondered about that. Will help me immensely :)
Thank you, Volker! 🙏 🙌
it works pretty easily too, here's a screenshot for any others to quickly find the 'arguments' tab and where to enter the info. there, i use a .maxhelp file to test my externals, but one could substitute a path to any patch they wanted: