I just started my first SPFx project on SharePoint 2016.
After I key in
gulp serve the workbench prompt up.
My question is, how to exit the workbench?
In my DOS prompt it seems gulp is still listening and not allow me typing any command.
I would recommend you to use Node JS command prompt for running commands related to SharePoint Framework.
And to stop the execution:
Close both the local and hosted workbench and stop the local web server by pressing
CTRL+Cin the command prompt.
You can follow above article for testing of your web parts.