From 1545f71293266365d5617ece571b54dc7c05bc93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Fri, 22 Nov 2019 16:42:38 +0800 Subject: [PATCH] context id generate --- doric-cli/scripts/server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doric-cli/scripts/server.js b/doric-cli/scripts/server.js index feff2227..b89b09e7 100644 --- a/doric-cli/scripts/server.js +++ b/doric-cli/scripts/server.js @@ -1,5 +1,6 @@ const ws = require('nodejs-websocket') const { exec, spawn } = require('child_process') +const fs = require('fs') var clientConnection = null var debuggerConnection = null @@ -30,6 +31,9 @@ const createServer = () => { let contextId = resultObject.data.contextId let projectHome = resultObject.data.projectHome + + fs.writeFileSync(projectHome + '/build/context', contextId, 'utf8') + let source = resultObject.data.source console.log(connection.key + " request debug, project home: " + projectHome)