Versions Compared

Key

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


This property specifies how the Error 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 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

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"


Code Block
languagejs
titleExample Configuration
errorScreen: {
  type: "development-advanced",
  editor: "vscode"
}



Screenshot of Interactive Error Stack at runtime