Debugging WebDialogs' .tmp Files
-
OK, so MSIE is giving you an error at line 123456789 and you are dead sure that the meaning of the message is "somewhere in your code there's something wrong." Very, very helpful. Been there?
Lately I've been using
WebDialog.set_html()
to eliminate the need for a separate HTML file. That "useless" error message is not quite as useless as I used to think. It includes the URL of the file (it's on your disk, hidden). My last was something like "c:\Documents and Settings\username\Local Settings\Temp\skp1A.tmp". ("Local Settings" is hidden. Neither your Open File dialog nor Windows Explorer will show it. You can, however, type it into the Open File dialog.) Apparently, SketchUp writes this temp file and then hands its address to MSIE.You can open the file with Opera. Turn on the error console and you will find that mystery bug in a flash. (Assuming Opera thinks its a bug. Often but not always the case.) You'll need to comment out the line that sets location to "skp:...". Opera doesn't think "skp" is a valid protocol.
-
@martinrinehart said:
"Local Settings" is hidden. Neither your Open File dialog nor Windows Explorer will show it...
Yes they will. Open Windows Explorer, any folder.
MENU: Tools > Folder Options
Choose the View tab.
Choose 'Show hidden files and folders' under 'Hidden files and folders'Other things I do (because I want to see EVERYTHING!)
I choose:
check 'Display the contents of system folders'
check 'Display the full path in the titlebar'
uncheck 'Hide extensions for known filetypes'
uncheck 'Hide protected operating system files'I can't help it, used PC since DOS first released, and could always see everything... don't like hidden things...
.. but then I might be a control freak.. -
going one step further, you can use microsoft script debugger, to debug those errors the IE raises
I think its a standalone that you can download from microsoft website.when I had visual studio 2005 installed on my PC back then, for some reason it took over on the standard error popup , and went directly to debug it in the Visual studio environment.
script debugger work well on XP , didn't try it on vista nor 7
-
In a normal MSIE browser window, if an error occurs (and you have Internet Options > "Advanced" (tab) > "Browsing" (group) > "Display a notification about every script error" unchecked,) you will not see a Error Popup, but there wil be an error icon in the lower left corner on the Status bar. Clicking this icon will bringup the Error Popup dialog. If you have Visual Studio installed it will likely ask if you wish to Debug in VS.
Advertisement