diff --git a/plugin/commands/workspace.py b/plugin/commands/workspace.py
index 83892e8..8a2d518 100644
--- a/plugin/commands/workspace.py
+++ b/plugin/commands/workspace.py
@@ -107,6 +107,8 @@ class CodempLeaveBufferCommand(sublime_plugin.WindowCommand):
             finally:
                 if not vws.handle.detach_buffer(buffer_id):
                     logger.error(f"could not leave the buffer {buffer_id}.")
+                else:
+                    logger.debug(f"successfully detached from {buffer_id}.")
         sublime.set_timeout_async(_)
 
 # Leave Buffer Comand