sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Debugging Extension Despite GoogleBreakpad on MacOS

    Scheduled Pinned Locked Moved Developers' Forum
    1 Posts 1 Posters 91 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      metasim
      last edited by

      Google has started deploying products with a tool called Breakpad which detects when a program is about to crash, gathers up debugging information, and allows the user to send it along to Google. This is good from a normal user standpoint, but problematic when trying to debug a native MacOS Ruby extension running inside Sketchup.

      Normally on MacOS when a process crashes you get a similar native feature, but the crash report can be reviewed, which I've found helpful in determining where to start debugging. By default, Google Breakpad intercepts this process, and provides no option for reviewing the crash report before it is sent along. After a couple days of frustrating searching about this "feature" I finally figured out how to (partially) reenable the default crash reporter on MacOS, and thought I'd share it here so I didn't feel like all that time spent on it was in vain. πŸ˜„

      Via the Finder open up Sketchup.app with the "Show Package Contents" option. Navigate through "Contents" and open the "Info.plist" file. Add a new property with name "GoogleBreakpadSendAndExit" with value "NO" (see attached image). Save and restart Sketchup. When Sketchup crashes, you'll still get the Breakpad dialog, but after clicking "Cancel" the default MacOS crash reporter will appear.

      I figured this out by reading through the Breakpad source code. More configuration properties are described in Breakpad.h.

      I don't know how this works on other platforms, but I suspect some similar options are available.

      I hope this helps someone.

      Simeon

      Best,

      Simeon


      EnableDefaultCrashReporter.png

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement