IntelliSense for debugger JavaScript APIs


Hi Everyone!

Just a quick update this time. We've seen more people posting about JavaScript extensions and scripts and we love hearing about what you're doing with them and seeing people embrace NatVis, 'dx', and LINQ. One of the things you've been asking us about is getting IntelliSense when writing their scripts.

We've pulled together an IntelliSense definition file that you can use in VS Code to get IntelliSense on all the host.* debugger object APIs. To use the IntelliSense definition:

  1. Download the IntelliSense definition - JSProvider.d.ts.zip
  2. Extract JSProvider.d.ts to the same folder as your script
  3. Add “/// <reference path="JSProvider.d.ts" /> ” to the top of your script

With that in your script, VS Code will automatically give you IntelliSense on the host APIs provided by JSProvider in addition to the structures in your script. Just type “host.” and you’ll see IntelliSense for all the available APIs.
intellisense
If you hit any problems, don't hesitate to comment below.

-Andy
@aluhrs13

Comments (2)

  1. Andrey says:

    Have a problem with currentProcess \ currentThread – not avalilable

    3: kd> dx -r3 Debugger.State.Scripts.testscript
    Debugger.State.Scripts.testscript
    Contents : [object Object]
    host : [object Object]
    diagnostics : [object Object]
    namespace
    currentSession : Remote KD: KdSrv:Server=@{},Trans=@{1394:Channel=10}
    currentProcess : Unknown exception
    currentThread : Unknown exception
    memory : [object Object]

    1. Andy Luhrs says:

      Shoot an email to WinDbgFB@microsoft.com with more details like WinDbg version, host, and target OS versions and we can take a look.

Skip to main content