
It'll add a red dot to indicate that you've added a breakpoint.
#How to use pycharm code#

Here's the code that I inject to connect: import sys There are a few ways to connect to the debugger, but I have found it most reliable to inject the connecting code somewhere near the entry point of the code I'm testing. Select it from that dropdown if it's not.Ĭonnect Your Executing Code To The Debug Server You should see your new debug configuration selected on the top right of the main window.You'll need to remember what number you used for the next section. You can choose a different port number if you know what you're doing.Name your new configuration "Maya Remote Debug".Choose Python Debug Server as the template.Click the plus icon to add a new configuration.

Creating a Remote Debugging Configurationįirst, you'll need to configure the remote debugger within P圜harm.
#How to use pycharm full version#
You can trial the full version of P圜harm to give remote debugging a whirl if you're still on the Community edition. Before you get started, remote debugging is a feature that is only available with P圜harm Professional. I'll show you what you need to do to connect P圜harm to Maya so that P圜harm can monitor your code as it runs. Connecting P圜harm's debugger to Maya will help you efficiently introspect your code as it runs, find your bugs, and fix them.
