diff --git a/src/application.tsx b/src/application.tsx index d851261..485abdb 100644 --- a/src/application.tsx +++ b/src/application.tsx @@ -27,7 +27,7 @@ export default class C0VMApplication extends React.Component<{}, C0VMApplication } render() { - if (this.state.crashed) { + if (this.state.crashed && !globalThis.DEBUG) { return } /> + } else if (this.state.crashed && globalThis.DEBUG) { + return Please report this problem to our GitHub Repo!

} + extra={ + <> + +
+

How to report?

+

Step 1

+

Copy the application status dump below:

+
{
+                            JSON.stringify(
+                                {
+                                    ReactState: this.state,
+                                    GlobalState: {
+                                        exec_line: globalThis.EDITOR_HIGHLIGHT_LINENUM,
+                                        breakpoints: Array.from(globalThis.EDITOR_BREAKPOINTS),
+                                        configuration: {
+                                            DEBUG: globalThis.DEBUG,
+                                            DEBUG_DUMP_MEM: globalThis.DEBUG_DUMP_MEM,
+                                            DEBUG_DUMP_STEP: globalThis.DEBUG_DUMP_STEP,
+                                            MEM_POOL_SIZE: globalThis.MEM_POOL_SIZE,
+                                        }
+                                    }
+                                }, undefined, 4
+                            )
+                        }
+ +

Step 2

+

+ Open a new issue and paste the state dump above into issue description. +

+ + + +
+ + } + /> } return (