sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Debugging WebDialogs' .tmp Files

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 2.3k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      MartinRinehart
      last edited by

      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.

      Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        @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.. 💚

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • L Offline
          lib
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            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.

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement