This property specifies how the Error Stack is displayed when Profound.js shows an error message.
It is provided as an object with the following configuration properties:
- interactive - true or false value that allows the user to interact with the Error Stack interface by clicking on each stack entry to see the problem code; defaults to false
- downloadStack - true or false value that determines if the user can download the Error Stack as a text file; defaults to true
- editor - specifies the IDE/Editor to link to for editing when using the Interactive Error Stack; the editor URL can have the following replacement variables:
- $file - the full path to the file name containing the code where the error occurred
- $line - line number where the error occurred
- $column - column number where the error occurred
The editor value can also be specified using the following shortcut values:
- "vscode" - translates to "vscode://file/$file:$line:$column"
- "pjs" - translates to "http://localhost:8081/ide/?ifsFile=$file&line=$line&column=$column"
Example Configuration
errorStack: { interactive: true, editor: "vscode" }
Screenshot of Interactive Error Stack at runtime