![pycharm debugger pycharm debugger](https://rk.edu.pl/site_media/resources/python.rk.edu.pl/images/wdb.png)
Use the shortcut Ctrl+ Shift+ R on Mac to run the code.
#PYCHARM DEBUGGER CODE#
There are three ways of running the Python code in P圜harm. Once the code is written, it is time to run the code. Let us write a simple code that adds two numbers and prints the result of the addition as output. Press enter on your keyboard and your new file will be ready and you can write your code in it. Choose Python File and provide a name for the new file.Now, we are all set to start writing our first Python code in P圜harm. You might also get a small Tip of the Day popup where P圜harm gives you one trick to learn at each startup. How would you like to open the project? Select the desired option. Note: You might be notified that: Projects can either be opened in a new window or you can replace the project in the existing window or be attached to the already opened projects.
![pycharm debugger pycharm debugger](https://img2020.cnblogs.com/other/1147362/202103/1147362-20210306095444327-1556139946.png)
✶ Click Create on the bottom right corner of the dialog box to create the new project. Usually, it is a good idea to keep the defaults. Then we have checkboxes to select Inherit global site-packages and Make available to all projects.
![pycharm debugger pycharm debugger](https://resources.jetbrains.com/help/img/idea/2021.2/py_python_remote_debug_configuration.png)
You can also specify the location of the New environment and select a Base interpreter (for example Python2.x or Python3.x) from the options available. These are the tools that help us to keep dependencies required by different projects and are separated by creating isolated Python environments for each of them. From the drop-down list, you can select one of the options: Virtualenv, Pipenv, or Conda. Here, you can specify whether you want to create a new project interpreter or reuse an existing one. ✶ In this window specify the location of the project where you want to save the files. ➮ After successfully installing P圜harm, the welcome screen comes up. So, let’s see how we can create a project in P圜harm. This means, everything in P圜harm is written with respect to a Project and the first thing that you need to create before you can write any code is a project. Every code or file within Pycharm is written inside a project.