The dev
command provided by the Modern.js Module is mainly used for debugging the code.
dev
command is executed, Modern.js Module starts looking for debugging tools or tasks that can be executed. A debugging tool or task is a Modern.js Module debugging tool plugin like module doc.In addition to the dev
command, you can also start a debugging tool or task directly by using the dev [debug tool name]
option.
If you need to extend the dev command, or rather provide your own Modern.js Module debugging tool plugin, then you will need to know the following first.
In general, the code to implement a debugging tool that does nothing and the associated configuration is as follows.
If this debugging tool plugin is required, it needs to be added to the configuration file.
At this point we can execute it when we execute the dev
or dev do-nothing
command. After execution, it will first execute the source build task in listening mode and print the log messages immediately afterwards.
For currently officially supported debugging tools and third-party supported debugging tools, you can view them in plugins list.