Skip to content

Commit 83c8c46

Browse files
committed
[FIX] functions: stop debugging context
Since c2c8991, adding a `?` to debug a formula sets `ctx.debug` to true, which put a debugger in `computeFunctionToObject`. But `ctx.debug` was never set to false afterwards, so the whole evaluation was then filled with debuggers. closes #8200 Task: 6052128 X-original-commit: ea91dd1 Signed-off-by: Rémi Rahir (rar) <rar@odoo.com> Signed-off-by: Adrien Minne (adrm) <adrm@odoo.com>
1 parent 5de1942 commit 83c8c46

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/o-spreadsheet-engine/src/functions/create_compute_function.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export function createComputeFunction(
8080
if (this.debug) {
8181
// eslint-disable-next-line no-debugger
8282
debugger;
83+
this.debug = false;
8384
}
8485
const result = descr.compute.apply(this, args);
8586

0 commit comments

Comments
 (0)