Debug mode for registering any commands in the elevated console

I used this command, but forgot how to enable it:

In the elevated console that ctrl + ` calls, I typed something like ...

turn_on_debug_mode 

... and the elevated console started logging every command I run. For example, if I click the right mouse button in the view and click Copy file path , and then in the elevated console I found a record of this action with the name of the command to be called, for example copy_file_path .

So, it was an easy way to capture the names of commands that I could use in self-signed elevated plugins.

The problem is that I don’t remember how to enable this debugging mode.

+6
source share
1 answer

In the console tab:

 sublime.log_commands(True) 

To view keystrokes:

 sublime.log_input(True) 
+14
source

Source: https://habr.com/ru/post/985560/


All Articles