Skip to content

Commit

Permalink
fix: further specify skipped stack frames in normal mode
Browse files Browse the repository at this point in the history
The function `callDeferred` is in `gnark/frontend`. We do not want to skip it
as it is a break condition.
  • Loading branch information
ivokub committed Mar 3, 2023
1 parent ca090d2 commit 44fcb40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debug/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func writeStack(sbb *strings.Builder, forceClean ...bool) {
if strings.Contains(frame.File, "test/engine.go") {
continue
}
if strings.Contains(frame.File, "gnark/frontend") {
if strings.Contains(frame.File, "gnark/frontend/cs") {
continue
}
file = filepath.Base(file)
Expand Down
2 changes: 1 addition & 1 deletion debug/symbol_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (st *SymbolTable) CollectStack() []int {
if strings.Contains(frame.File, "test/engine.go") {
continue
}
if strings.Contains(frame.File, "gnark/frontend") {
if strings.Contains(frame.File, "gnark/frontend/cs") {
continue
}
frame.File = filepath.Base(frame.File)
Expand Down

0 comments on commit 44fcb40

Please sign in to comment.