rework debug provider. support editor provider