leo debug has been removed in Leo 4.0. The interactive interpreter is no longer available.
For testing and debugging your Leo programs, use leo test, which runs your test suite against the real VM. For integration testing against a live network or a local devnet, use the SDK directly.