by Fenton Webb
New in AutoCAD 2014 is the JavaScript API. Without going into too much detail here (this will be covered in much more detail elsewhere) this basically allows developers host their Apps via a URL rather than a download/install model – very cool.
If you have tried using the JavaScript API, I’m sure you have started to get frustrated about not being able to debug your code… Well, I have a debugging solution for you…
To enable debugging our JavaScript APIs we use the WebInspector application which is part of the WebKit Open Source. This is a web application written in JavaScript that allows the user to examine things like HTML tags, debug JavaScript code and perform profiling.
You can access these tools by turning on this registry entry…
[HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Autodesk/WebInspector]
"DevToolsURL"=http://drawingfeed.visualtao.net/DevTools/inspector/devtools.html
Once enabled, you will see a new Right Click menu in the AcWebKit control context menu called “Developer Tools”…
Enjoy!