Make flipper server debuggable

Summary: This diffs adds debugging support to flipper server, by adding VSCode config for it

Reviewed By: timur-valiev, aigoncharov

Differential Revision: D32982874

fbshipit-source-id: 8e187ad05a05566a598db04b97e8b08e3de7e835
This commit is contained in:
Michel Weststrate
2021-12-13 05:46:42 -08:00
committed by Facebook GitHub Bot
parent ae56f2b62f
commit 73c6e8ee05
4 changed files with 41 additions and 26 deletions

View File

@@ -37,7 +37,12 @@ export function startSocketServer(
.catch((error: any) => {
if (connected) {
// TODO: Serialize error
client.emit('exec-response-error', id, error.toString());
// TODO: log if verbose console.warn('Failed to handle response', error);
client.emit(
'exec-response-error',
id,
error.toString() + (error.stack ? `\n${error.stack}` : ''),
);
}
});
});