Skip to content

(break) does not work when placed in a file #996

@funk443

Description

@funk443

As stated in the manual section 12.2, one can set a breakpoint in the program by placing a (break) procedure call, then the debugger will be invoked so one can inspect the continuation.

However, I found that when (break) is placed within a file, it simply quit the program, instead of invoking the debugger. Consider the following example:

(import (scheme))

(define x 100)
(break)
(display x)
(newline)

Run this file with scheme --debug-on-exception --program test.ss, the program simply exits upon (break), thus the remaining function calls will not be executed.

However, if I try to run this file in scheme REPL with (load "test.ss"), the debugger is invoked normally.

Is this an intented behaviour of (break) or not?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions