Hey Calvin,

2010/9/3 Calvin <[email protected]>:
> Hi Koen
>
> Apologies again for falling out of this message loop for some time...
>
>>That is strange, have you ruled out that you are not still using the
>>old unpatched version of Wt ?
>
> I have now set up witty from the git repository so hopefully, there will not
> be issues with patches that have been left out. I am now able to replicate
> the same error in Ubuntu 10.4/Chromium 6.0.xx and in Vista/Chrome 6.0.495
>
>>One possibility is to build a Debug version of the library, in that
>>way the non-minified JavaScript is used, and in this way we will get
>>meaningful line numbers in firefox. You can then also enable debugging
>>in /etc/wt/wt_config.xml and debug the JavaScript error using Firebug.
>>
>>You need set CMAKE_BUILD_TYPE:String=Debug in the CMakeCache.txt of Wt
>>and re-run make.
>
> I have now done this as suggested and with that obtained the following:
>
> In Chrome, in developer mode/scripts panel, when I set it to pause on all
> exceptions, it pauses at the following line:
>
> if(document.styleSheets)for(var e=0;e<document.styleSheets.length;e++){var
> k=document.styleSheets[e],i=0,n=false;do{if((n=k.cssRules?k.cssRules[i]:k.rules[i])&&n.selectorText)if(n.selectorText.toLowerCase()==a)if(b=="delete"){k.cssRules?k.deleteRule(i):k.removeRule(i);return
> true}else return n;++i}while(n)}return
> false};this.removeCssRule=function(a){return
> h.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);

This is still however a minified version suggesting that you are not
really using a Debug build (versus Release or RelWithDebugInfo build)
of Wt. In my experience, most JavaScript debuggers fail to deal
properly with very long compacted lines of JavaScript, they just are
not reliable enough as I suspect also in this case since nowhere '0'
is being used.

Regards,
koen

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to