Add DBG_CONTRACT and DBG_LOC before DBG_DEF

This commit is contained in:
Gaith Hallak 2023-03-29 10:56:46 +03:00
parent 88a1e07f13
commit 626b27ce1a

View File

@ -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 %% DBG_LOC is added before the function body to make it possible to break
%% at the function signature %% at the function signature
SCode = dbg_contract(Env) ++ dbg_loc(Env, Attrs0) ++ to_scode(Env, Body), SCode = to_scode(Env, Body),
ScopedSCode = dbg_scoped_vars(Env, ArgsNames, SCode), DbgSCode = dbg_contract(Env) ++ dbg_loc(Env, Attrs0) ++ dbg_scoped_vars(Env, ArgsNames, SCode),
{Attrs, {ArgTypes, ResType1}, ScopedSCode}. {Attrs, {ArgTypes, ResType1}, DbgSCode}.
-define(tvars, '$tvars'). -define(tvars, '$tvars').