Run debugger with no optimization.

This commit is contained in:
Stephen Chung 2022-02-09 08:00:05 +08:00
parent 3b9dbd5fce
commit 1b4184ef16
2 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,8 @@ Version 1.5.0
This version adds a debugging interface, which can be used to integrate a debugger.
The `REPL` tool uses [`rustyline`](https://crates.io/crates/rustyline) for line editing and history.
Bug fixes
---------

View File

@ -179,6 +179,9 @@ fn main() {
// Initialize scripting engine
let mut engine = Engine::new();
#[cfg(not(feature = "no_optimize"))]
engine.set_optimization_level(rhai::OptimizationLevel::None);
let mut script = String::new();
let main_ast;