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:
committed by
Facebook GitHub Bot
parent
ae56f2b62f
commit
73c6e8ee05
@@ -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}` : ''),
|
||||
);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user