You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constAddr2Line=require('addr2line').Addr2Line;constDiagnosticParser=require('particle-diagnostic-parser').DiagnosticParser;constsample='[{"t":"app_thread","i":2,"c":{"a":"0x80a01b5","x":"blank.cpp:47"}]';constresolver=newAddr2Line(['/path/to/bin1.elf','/path/to/bin2.elf']);constparser=newDiagnosticParser(resolver);// Object returned by the resolver function is merged (using Object.assign) with an// Object containing `address` field.functionresolve(addr){returnresolver.resolve(addr);}parser.expand(sample).then((result)=>{console.log(util.inspect(result,{depth: null}));});