feat:debug support multi entry and fix some bugs
This commit is contained in:
@@ -50,12 +50,8 @@ - (void)startDebug {
|
||||
}
|
||||
|
||||
- (void)stopDebug:(BOOL)resume {
|
||||
id <DoricDriverProtocol> driver = self.doricContext.driver;
|
||||
if ([driver isKindOfClass:DoricDebugDriver.class]) {
|
||||
|
||||
}
|
||||
self.doricContext.driver = self.nativeDriver;
|
||||
if (resume) {
|
||||
self.doricContext.driver = self.nativeDriver;
|
||||
[self.doricContext reload:self.doricContext.script];
|
||||
}
|
||||
}
|
||||
@@ -76,6 +72,7 @@ @implementation DoricDev
|
||||
- (instancetype)init {
|
||||
if (self = [super init]) {
|
||||
_callbacks = [NSHashTable hashTableWithOptions:NSPointerFunctionsWeakMemory];
|
||||
_reloadingContexts = [NSHashTable hashTableWithOptions:NSPointerFunctionsWeakMemory];
|
||||
[DoricNativeDriver.instance.registry registerMonitor:[DoricDevMonitor new]];
|
||||
}
|
||||
return self;
|
||||
@@ -104,6 +101,7 @@ - (void)openDevMode {
|
||||
}
|
||||
|
||||
- (void)closeDevMode {
|
||||
[self stopDebugging:YES];
|
||||
if (self.wsClient) {
|
||||
[self.wsClient close];
|
||||
self.wsClient = nil;
|
||||
|
@@ -106,6 +106,7 @@ @implementation DoricDevViewController
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
self.title = @"Doric Devkit";
|
||||
self.edgesForExtendedLayout = UIRectEdgeNone;
|
||||
self.view.backgroundColor = UIColor.whiteColor;
|
||||
self.headerView = [[UIView new] also:^(UIView *it) {
|
||||
it.width = self.view.width;
|
||||
|
Reference in New Issue
Block a user