context id generate

This commit is contained in:
王劲鹏 2019-11-22 16:42:38 +08:00
parent a4d5eb770f
commit 1545f71293

View File

@ -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)