diff --git a/src/utils.ts b/src/utils.ts index dad71c4..d032ba7 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -128,6 +128,10 @@ export const getFun = (options: IOptions) => { return Promise.resolve(true).then(() => { return fun(...args); }) + .catch(ex => { + console.log('[midway-debugger] got error:', ex.message); + throw ex + }) } } @@ -208,4 +212,4 @@ export const vscodeSupport = (options) => { } writeFileSync(vscodeSettingFile, JSON.stringify(vscodeSettingJson, null, 2)); -}; \ No newline at end of file +};