I don't know if this is common knowledge, but I didn't find a reference to it when searching sketchUcation, so I thought I'd share.
If you turn on the WebKitDeveloperExtras for SketchUp on a Mac, you can get the "Inspect element" pane/window to analyze and debug webdlg pages! Here's how:
Quit SketchUp
First, find out the bundle id for your installation of SketchUp:
- open a terminal window
- type
mdls /Applications/Google\ SketchUp\ 8/SketchUp.app | grep BundleIdentifier
You should get a line like:
kMDItemCFBundleIdentifier = "com.google.sketchupfree8"
(obviously, this is from a free version install - the bundle id string will be different on pro)
Next, enable the WebKitDeveloperExtras in SketchUp:
- type
defaults write com.google.sketchupfree8 "WebKitDeveloperExtras" -bool TRUE
(use the bundle id string you got above)
Now start SketchUp and open a tool that uses webdlg. If you right-click in the webdlg window, you will get a menu that says "Reload" and "Inspect Element". If you click the second choice, you will open the inspection pane/window (there is a setting on the inspector that chooses whether it opens as a pane in the target window or as a separate window). Now you can use the inspector to do things such as see which elements of the html and css affect what aspects of the display. You can also place breakpoints in javascript and single-step through the scripts to your heart's content. This technique eliminates the need to load your javascript up with alerts or similar debugging outputs, and can detect subtle errors that otherwise cause functions to abort silently.
Enjoy,
Steve


I used ~/.QL_SketchUp just to be more explicit. Using these, your skp files can be scattered anywhere and the QuickLook should still work. Just remember. per my previous post, to delete the thumbnail if you delete the skp!