Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This property specifies how the Error Stack Screen is displayed when Profound.js shows an error message.

It is provided as an object with the following configuration properties:

...

:

  • type- there are 3 possible types:
    • "production" - No error stack is not shown
    • "development" - A brief copy of the error stack is shown
    • "development-advanced" - An Interactive Error Stack is shown, allowing you to click on each stack entry to see
    the problem code; defaults to false
    • relevant code and jump into an editor to edit the code
  • 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

...

Code Block
languagejs
titleExample Configuration
errorStackerrorScreen: {
  interactivetype: true"development-advanced",
  editor: "vscode"
}



Screenshot of Interactive Error Stack at runtime