PyCharm
 
2022.3
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

Debugging the server- and the client-side code

Last modified: 28 September 2022

Available only in PyCharm Professional: download to try or compare editions

Required plugins:

Javascript and TypeScript, JavaScript Debugger, Node.js -  The plugins are available only in PyCharm Professional, where they are enabled by default.

With PyCharm, you can debug the server-side code of a Node.js application together with its client-side JavaScript code. To do that, you need to create a separate JavaScript Debug configuration in addition to the Node.js configuration and run these two configurations together. You can do that in two ways:

  • Create a JavaScript Debug configuration from the Edit Configurations dialog (Run | Edit Configurations) and then click the Run toolbar button to start it, see Debugging an application running on an external web server for details.

  • Create a JavaScript Debug configuration from the Live Edit tab when creating or editing a Node.js configuration. In this case, the JavaScript Debug configuration will start automatically every time you start the Node.js configuration.