debugging add module support

This commit is contained in:
pengfei.zhou
2021-08-24 11:25:06 +08:00
committed by osborn
parent 0ffb14ec72
commit 20e6f5c96d
7 changed files with 65 additions and 4 deletions

View File

@@ -226,6 +226,13 @@ - (void)startDebugging:(NSString *)source {
@"msg": @"Cannot find suitable alive context for debugging"
}];
} else {
[DoricSingleton.instance.bundles enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
[self.wsClient sendToDebugger:@"LOAD_MODULE"
payload:@{
@"name": key,
@"content": obj,
}];
}];
DoricContext *context = contexts.lastObject;
[self.wsClient sendToDebugger:@"DEBUG_RES" payload:@{
@"contextId": context.contextId