log debugged context id

This commit is contained in:
王劲鹏 2019-12-11 11:25:15 +08:00 committed by unknown
parent dc2db2298b
commit f0259d6c35

View File

@ -19,7 +19,7 @@ const WebSocketClient = require('ws')
const fs = require('fs') const fs = require('fs')
let context = process.cwd() + '/build/context' let context = process.cwd() + '/build/context'
const contextId = fs.readFileSync(context, { encoding: 'utf8' }) const contextId = fs.readFileSync(context, { encoding: 'utf8' })
console.log(contextId) console.log("debugging context id: " + contextId)
let global = new Function('return this')() let global = new Function('return this')()
global.doric = doric global.doric = doric
global.context = doric.jsObtainContext(contextId) global.context = doric.jsObtainContext(contextId)