Scala 3 @main annotation breaks debugger
Answered
When using the @main annotation for the main entrypoint, breakpoints aren't hit when the debugger is run. I have also tried the old-style main declaration, and breakpoints set within the function are hit, but ones in functions outside main aren't hit even when they are in the same file and called directly from main.
Please sign in to leave a comment.
Please see https://youtrack.jetbrains.com/issue/SCL-18490 and the linked issues.
In Section 1, “Execute a model”, you’ll learn how to start and stop a model execution. Additionally, some engine may also provide some dedicated control panels and views. Section 2, “Animate a model” presents how to enable or disable the animation. Section 3, “Debug a model” presents how to suspend the execution in order analyze the model during its execution. Thanks to the trace support, in GEMOC, this activity allows to go forward but also backward and analyze several dimensions of the runtime data.