Debugging IDE/UI Exceptions in MPS

Technical Problem:


Have you ever tried desperately to debug Exceptions in your MPS applications that occur within the Graphical User Interface or within the UI Thread? Unfortunately, these cannot be found in the regular "Event Log" or in the "Messages Tab". 

image

Troubleshooting:

A click on the small Exclamation mark at the bottom right of the application opens a separate Error-Console in which only the fatal IDE-relevant errors can be found: 


Alternatively, a created MPS-Standalone-Application can also be started directly from the command line. To do this, simply start the JAR file directly in the bin directory of the application, whereby the required Class path can be taken from the batch file (application.bat) found here, after the first line has been commented out using REM:
 

REM @ECHO OFF

The command line then shows exactly the same exceptions as the "IDE Fatal Errors" console within MPS. 

$PATH\jre\bin\java.exe -cp "$CLASSPATH" jetbrains.mps.Launcher


in 
Referencing of Icons in MPS-Editor