support remote debug

This commit is contained in:
CaiHQ
2022-09-02 21:26:21 +08:00
parent 6f6be77dfe
commit 19d0c53304
4 changed files with 72 additions and 17 deletions

View File

@@ -120,9 +120,8 @@ var switchPeriod = function(per) {
return "";
}
};
// 本地启动
var startContractAtSlave = function() {
var startContractAtSlave = function(isDebug) {
//this is for fixed contract,not for the unit contract
var period = $("#selectDumpPeriod")[0].value;
if (period == "选择状态保存模式") {
@@ -150,6 +149,10 @@ var startContractAtSlave = function() {
}else{
}
}
if (remoteDebugPort.value !='') {
request.remoteDebugPort = remoteDebugPort.value;
}
request.isDebug = isDebug;
request.dumpPeriod = dumpPeriod;
request.isPrivate = global.ypkIsPrivate;
request.owner = global.sm2Key.publicKey;