Skip to content

Commit

Permalink
Merge pull request #364 from mstreeter10/udb
Browse files Browse the repository at this point in the history
udb: Skip over step-in when no avaiable src file
  • Loading branch information
Jafaral authored Feb 27, 2024
2 parents 090d47a + a8d2421 commit 4f40829
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions uni/udb/stepping.icn
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ end
#
method checkStep()
local cur_line, cur_file
static no_src_file := &null

cur_file := keyword("file", MONITORED)
cur_line := keyword("line", MONITORED)
Expand All @@ -146,10 +147,21 @@ method checkStep()
}
else if step_count = 1 then {
if cur_file == "__faux.icn" then {
DState.State := RUN
DState.RunCode := STEP
return
}
DState.State := RUN
DState.RunCode := STEP
return
}
else if not member(DState.srcFile.fileText, cur_file) then {
DState.State := RUN
DState.RunCode := STEP
if /no_src_file then no_src_file := "\n udb was unable to locate source file: " || cur_file || "\n Returning."
return
}

if \no_src_file then {
DState.Write(no_src_file)
no_src_file := &null
}

step_count -:= 1

Expand Down

0 comments on commit 4f40829

Please sign in to comment.