Monthly Archives: May 2010

VS 2008 debug Script Documents

A really annoying issue that can arise in VS 2008 if your attempting to debug a site with a lot of javascript (which comes for free with the AJAX toolkit ;) is you get a new node in the solution explorer detailing each little piece of javascript that is loaded just in case you need to debug it. This is great and all but it looks like nobody tested this with a production size site because anything more than a small amount of JS and it slows to a crawl.

There does not appear to be a solution in VS 2008 for this, you are basically back to hacking the registry to disable script debugging.

Open a command prompt and type;

reg add HKLM\SOFTWARE\Microsoft\VisualStudio\9.0\AD7Metrics\Engine\{F200A7E7-DEA5-11D0-B854-00A0244A1DE2} /v ProgramProvider /d {4FF9DEF4-8922-4D02-9379-3FFA64D1D639} /f

See here for more;

http://blogs.msdn.com/greggm/archive/2009/04/06/disabling-script-debugging-in-vs-2008-ie8.aspx
http://pagebrooks.com/archive/2008/04/23/easily-disable-javascript-debugging-in-visual-studio-2008.aspx

Advertisements

IPhone Dev Error: Program received signal: “EXC_BAD_ACCESS”. or “Failed to call designated initaializer on NSManagedObject class”

Symptoms: cryptic error message with a massive stack trace (65k+ stack frames)
This could be a memory leak, however, the cause in my case was i had named a property of a NSManagedObject object “description” in my Core Data data model. While “description” is a not technically a reserved keyword it is a method in NSObject which when used with Core Data causes problems.
Solution; rename the property to something else like desc.

see http://stackoverflow.com/questions/2222155/core-data-crashes-with-exc-bad-access-on-one-of-my-entities for more

IPhone Dev Error: “The model used to open the store is incompatible with the one used to create the store”;

You have probably changed the Core Data data model and are now trying to run your app in the simulator, however,, if you have already run it on the sim before then there will be data stored according to the old version of the data model. Quick solution: reset the simulator “IPhone Simulator > Reset Content and Settings” and try running your app again. Correct solution: look at versioning your data models.

%d bloggers like this: