Crash logging Opera with Inspector IIXII for Linux

For those of you interested, I’ve spent a bit of my time trying to make your crashing logging life easier. ;)

After reading a post from csant‘s blog I decided to try to make the process of starting up Inspector a little less annoying by writing a Bourne shell script to automatically parse the PID and execute Inspector with the proper PID parameter for Opera.

After taking what csant had already posted (and is posted in a couple of other places) I just did a little extending that narrowed down the results to the correct one and parsed the second element divided by whitespace, which has to be the PID. It’s a fairly simple script. ;)

To get started crash logging Opera to help make it better all you need to do is download the Inspector program and create a new file named “inspectr.sh”.

Notice that I named it “inspectr” intentionally, as the linux program file is and has always been just “inspectr” so this helps keep confusion between file names down.

In the new shell file that you’ve created, copy and paste the following and save it.

#!/bin/sh

opera=`ps aux | grep opera$ | awk '{print $2}'`
if [ "$opera" != "" ]; then
./inspectr $opera
fi

After saving it, you’ll need to run the following to make it executable.

chmod +x inspectr.sh

Make sure that you saved both of the files together and also followed the instructions for setting up Inspector (really just chmod 755). After that you can just pop open a terminal, navigate to the inspector directory and run the following command to attach Inspector to the current running version of Opera.

./inspectr.sh

That’s about it! Collect those logs and make sure to send them with your bug reports!

Related posts:

  1. Crash logging Opera with Inspector IIXII for Linux, Part 2 Following up with an update to my original post, I’ve...
  2. Linux: Easy Opera + Inspector Launcher Opera + Inspector Launcher Latest version: 2009-06-22 – Download This is...
  3. Opera 10: Remove ‘Click to activate’ on flash in Linux! I’ve been working with d.i.z. as he’s found a way...
  4. Linux: Opera Crash Report Details Opera: Crash Report Details Latest version: 2009-06-25 – Download If...
  5. Linux: Two Scripts to Help Debug Opera Are you an Opera user and a Linux user at...

3 Responses to “Crash logging Opera with Inspector IIXII for Linux”


Leave a Reply

 

February 2009
S M T W T F S
« Jan   Mar »
1234567
891011121314
15161718192021
22232425262728
The W3C validators rely on community support for hosting and development.
Donate and help us build better tools for a better web.