Search code examples
sublimetext2sublimetextsublimetext3sublime-text-plugin

debug mode for logging any commands in the sublime console


I used that command but forgot how to turn it on:

In sublime console, which is invoked by ctrl+` I typed something like ...

turn_on_debug_mode

... and sublime console started to log every command I run. For example, if I press right mouse button on the view and click Copy file path then in the sublime console I found logging of this action with the name of invoked command like copy_file_path.

So that was an easy way to grab names of commands that I could use in self-written sublime plugins.

The problem is that I do not remember how to turn that debug mode on.


Solution

  • In the console input:

    sublime.log_commands(True)
    

    To view keystrokes:

    sublime.log_input(True)