[extension] add debug extension.