Skip to content

Commit

Permalink
trying to fix debugger which showed the debug scope code too
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Jul 22, 2023
1 parent 48fc865 commit 8cd6287
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/runtimePipelineYazzUiMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -3157,7 +3157,8 @@ ${origCode}
// insert the user generated event code found in "code"
// preceeded by all the code that defines the controls and
// properties that are in scope
let scopeCode = formEval +
let scopeCode =
formEval +
cacc +
parentCode +
meCode +
Expand All @@ -3167,16 +3168,14 @@ ${origCode}

let fcc =
`(async function(args){
${scopeCode}
let debug_from_here = true;
${code}
})`
let debugFcc = getDebugCode(
mm.active_form + "_" + control_name + "_" + sub_type,fcc,
{
skipFirstAndLastLine: true
})
fullEvalCode = debugFcc
fullEvalCode = scopeCode + debugFcc


// try to execute the code. Ideally, we should have all the
Expand Down

0 comments on commit 8cd6287

Please sign in to comment.