Re: venkman and stdout

Unknown <[email protected]>
Newsgroups gmane.comp.mozilla.devel.jsdebugger
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
That'll slow things down quite a bit, but shouldn't be too difficult 
otherwise.  Try creating a file with the following contents...

function dumpframe(frame)
{
     dd(formatFrame(frame));
}

Then in venkman, /loadd file:///path/to/file.js, and /evald 
console.jsds.interruptHook = dumpframe.  To stop the dumps, type /evald 
console.jsds.interruptHook = null;

You'll probably want to add some appropriate filtering.  See 
http://lxr.mozilla.org/mozilla/source/extensions/venkman/resources/content/venkman-debugger.js#1774 
for the implementation of formatFrame.

You'll also have to enable javascript dump output for dd() to work.


Rob.

Alexis Nikichine wrote:
> Hello,
> 
> First, thanks for this great debugger.
> 
> Second, we have memory problems reported by valgrind in our code (xpcom/c++
> home made components) and would find it useful to have venkman (or the jsd
> shared library ?)  print information on stdout for each executed statement,
> so we could localize valgrind problem in our javascript code.
> 
> Thanks for any help,
> 
> 
> Alexis
> 
> --
> some domain is free
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.