Debugging SVG with Visual Studio (XP SP2)
Saturday, January 22nd, 2005I’m mainly posting this so I’ll have a reference for myself, although other SVG’ers may find this helpful. I seem to be rebuilding machines and installing new VM’s at a fair pace lately. The machines running XP get SP2 installed and, unfortunately, that limits and breaks some of my local SVG development. So, here’s what I’m doing to get things “back to normal.”
The first annoyance I ran into was that I was unable to double-click local SVG files and have them display properly in IE6. OK, they would display properly, but I had to go through multiple clicks and dialogs to view the content. Very annoying, to say the least. Anyway, the message in IE appeared to be a pop-up block, but even after I disabled Pop-up blocker (I prefer Google’s toolbar for that for now), the problem persisted. The trick turned out to be in Tools->Options under the Advanced tab. Simply turn on “Allow active content to run in files on My Computer” and that problem goes away.
The next problem was with debugging. I was pleasantly surprised years ago to find out that I could debug my SVG ECMAScript in Visual Studio as long as I was viewing my SVG files in ASV and I was using IE’s script engine. After SP2, that feature went away. A special thanks goes out to Doug Schepers for this fix. Basically, you need to go to the following registry key:
[HKEY_CURRENT_USER\Software\Microsoft\Windows Script\Settings]
and add/set:
”JITDebug”=dword:00000001
From there, you should be in business.