feat(chalice): debug sourcemaps.pye

This commit is contained in:
Taha Yassine Kraiem 2022-10-28 17:11:25 +02:00
parent 6b1a93b55b
commit d95597ce86

View file

@ -148,8 +148,13 @@ MAX_COLUMN_OFFSET = 60
def fetch_missed_contexts(frames):
source_cache = {}
for i in range(len(frames)):
if len(frames[i]["context"]) > 0:
continue
try:
if len(frames[i]["context"]) > 0:
continue
except Exception:
print(">>>>>>>> fetch_missed_contexts exception:")
print(frames)
print("------------------")
file_abs_path = frames[i]["frame"]["absPath"]
if file_abs_path in source_cache:
file = source_cache[file_abs_path]