~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to apps/nsplugins/HOWTO.DEBUG

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-05-27 12:09:48 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20080527120948-dottsyd5rcwhzd36
Tags: 4:4.0.80-1ubuntu1
* Merge with Debian
 - remove 97_fix_target_link_libraries.diff
 - Add replaces/conflicts on -kde4 packages

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Want to run nspluginviewer in valgrind?  It's not easy.  Here's how:
 
2
 
 
3
- Trigger the plugin you want in konqueror without valgrind running.
 
4
- ps awwww | grep nspluginviewer
 
5
- Record the commandline, then kill -11 the process
 
6
- close drkonqi
 
7
- in a konsole, export ARTSDSP_MMAP=1
 
8
        - run LD_PRELOAD=$KDEDIR/lib/libartsdsp.so.0:$KDEDIR/lib/libartsc.so.0 valgrind -v --num-callers=15 --error-limit=no nspluginviewer <commandline that you saved>
 
9
 
 
10
- WAIT for four lines to be printed to the screen that start with:
 
11
5 ............
 
12
6 ............
 
13
7 ............
 
14
8 ............
 
15
 
 
16
- QUICKLY go back to konqi, reload the plugin page.
 
17
- You should see the valgrind konsole start to scroll lots of debug output.  If
 
18
  it does not, then it probably not picking up the new nspluginviewer.  Try
 
19
  again.
 
20
- As long as you don't close this konqueror window, you should be able to keep
 
21
  rerunning valgrinded nspluginviewer without much trouble.
 
22