@JGStew

My random thoughts.


Debug Bigfix Dashboard In Visual Studio

Objectives:

  1. View JavaScript Console Output in Visual Studio
  2. View HTML currently rendered in Dashboard (from RAM)
  3. Edit live HTML and see changes immediately

Prerequisites:

  1. Open BigFix Console Presentation Debugger
  2. Debug a Dashboard In the BigFix Console

Background:

The BigFix Windows Console has many fundamental parts that run an embedded “Web Browser Control” to display an HTML based UI and make use of JavaScript for dynamic content. These are not web pages or web based content and the HTML is all local. The “Web Browser Control” used is provided by Windows itself and is based upon Internet Explorer, but without the traditional UI or development tools that are accessible in a typical full Internet Explorer Browser window. This makes debugging JavaScript and HTML within the Console, generally in the form of a Console Dashobard quite difficult as you can’t see the JavaScript Console output that is useful for error messages and diagnosing problems.

The solution is to use Visual Studio in Script code debugging mode to access the underlying JavaScript Console of the embedded Internet Explorer based Web Browser Control.

Steps:

  1. Download Visual Studio for Windows (2017+)
  2. Install Visual Studio with Javascript components
    • JavaScript Components for Visual Studio
  3. Follow Steps here:
  4. Add JavaScript Console Window if missing (Debug -> Windows -> JavaScript Console)

Next: