From 626b27ce1a3ea1dea82651808198199dcc859248 Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Wed, 29 Mar 2023 10:56:46 +0300 Subject: [PATCH] Add DBG_CONTRACT and DBG_LOC before DBG_DEF --- src/aeso_fcode_to_fate.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/aeso_fcode_to_fate.erl b/src/aeso_fcode_to_fate.erl index f26c0cb..843ea39 100644 --- a/src/aeso_fcode_to_fate.erl +++ b/src/aeso_fcode_to_fate.erl @@ -122,9 +122,9 @@ function_to_scode(ChildContracts, ContractName, Functions, Name, Attrs0, Args, B %% DBG_LOC is added before the function body to make it possible to break %% at the function signature - SCode = dbg_contract(Env) ++ dbg_loc(Env, Attrs0) ++ to_scode(Env, Body), - ScopedSCode = dbg_scoped_vars(Env, ArgsNames, SCode), - {Attrs, {ArgTypes, ResType1}, ScopedSCode}. + SCode = to_scode(Env, Body), + DbgSCode = dbg_contract(Env) ++ dbg_loc(Env, Attrs0) ++ dbg_scoped_vars(Env, ArgsNames, SCode), + {Attrs, {ArgTypes, ResType1}, DbgSCode}. -define(tvars, '$tvars').