rem: if (!gDebugStream) { var profileMgr = do_GetService(PROFILEMGR_CTRID, nsIProfileInternal); var outFile = profileMgr.getProfileDir(profileMgr.currentProfile); outFile.append("bayesianspam.log"); var fileTransportService = do_GetService(FILETPTSVC_CTRID, nsIFileTransportService); var trans = fileTransportService.createTransport(outFile, NS_RDWR | NS_CREATE_FILE | NS_APPEND, 420, false); gDebugStream = trans.openOutputStream(0, -1, 0); } gDebugStream.write(aOutput, aOutput.length); gDebugStream.flush(); 
add: dump(aOutput + "\n");   
context: function debugOutput(aOutput){    if (!gDebugStream) {        var profileMgr = do_GetService(PROFILEMGR_CTRID, nsIProfileInternal);        var outFile = profileMgr.getProfileDir(profileMgr.currentProfile);        outFile.append("bayesianspam.log");        var fileTransportService = do_GetService(FILETPTSVC_CTRID, nsIFileTransportService);        var trans = fileTransportService.createTransport(outFile, NS_RDWR |                        NS_CREATE_FILE |                        NS_APPEND, 420, false);        gDebugStream = trans.openOutputStream(0, -1, 0);    }    gDebugStream.write(aOutput, aOutput.length);    gDebugStream.flush();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d0c5c48dd4c6c11e344fb071f2c0267169a7d62b/bayesianSpamFilter.js/buggy/mailnews/extensions/bayesian-spam-filter/bayesianSpamFilter.js