feat: 1. ios debugger remote connected

TODO:
fix arg type
This commit is contained in:
Insomnia
2019-11-08 10:30:06 +08:00
parent 70a6c9193a
commit e5106a25ba
6 changed files with 98 additions and 21 deletions

View File

@@ -51,7 +51,7 @@ + (instancetype)instance {
}
- (void)createContext:(DoricContext *)context script:(NSString *)script source:(NSString *)source {
context.contextId = [NSString stringWithFormat:@"%ld", (long) self.counter++];
context.contextId = [NSString stringWithFormat:@"%ld", (long) ++self.counter];
[context.driver createContext:context.contextId script:script source:source];
dispatch_sync(self.mapQueue, ^() {
NSValue *value = [NSValue valueWithNonretainedObject:context];