More .NET Exception details

Aug 17, 2010 at 7:00 AM


I'm using a fairly complex JS script which interacts with .NET via objects passed into the JS context (functioning as delegate objects).

From time to time, I run into bugs in the code, and then I can get exceptions like the following:

Message: System.NullReferenceException: Object reference not set to an instance of an object.  
at Noesis.Javascript.JavascriptContext.Exit()  
at Noesis.Javascript.JavascriptScope.{dtor}(JavascriptScope* )  
at Noesis.Javascript.JavascriptContext.Run(String iSourceCode) 


Unfortunately there is no more details about the exception than the above, and I have no indication of where in my code this exception occurred.
A nice feature, would be if the exception e.g. njust included the last JS code executed (might just be something like "myDelegateObject.someDelegateFunction();".

This would help tremendously.

Thanks in advance, and keep up the great work! 

Aug 17, 2010 at 3:29 PM
Could you show us a sample code of what trigger this exception and perhaps we could work on this sample to check if we can upgrade the exception's reporting. Cheers.