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
@@ -12,7 +12,7 @@ import {FlipperServer} from 'flipper-common';
|
||||
import {io, Socket} from 'socket.io-client';
|
||||
|
||||
const CONNECTION_TIMEOUT = 30 * 1000;
|
||||
const EXEC_TIMOUT = 10 * 1000;
|
||||
const EXEC_TIMOUT = 30 * 10 * 1000;
|
||||
|
||||
export function createFlipperServer(): Promise<FlipperServer> {
|
||||
// TODO: polish this all!
|
||||
@@ -90,8 +90,8 @@ export function createFlipperServer(): Promise<FlipperServer> {
|
||||
close() {},
|
||||
exec(command, ...args): any {
|
||||
if (connected) {
|
||||
const id = ++requestId;
|
||||
return new Promise<any>((resolve, reject) => {
|
||||
const id = ++requestId;
|
||||
console.debug('exec >>>', id, command, args);
|
||||
|
||||
pendingRequests.set(id, {
|
||||
|
||||
Reference in New Issue
Block a user