![]() To resume, press F9.Īrticle posted using bloggu.io. Your Django application has stopped, and you can analyze the application's state. You'll have something similar with different states and frames. Then, I requested the endpoint that this viewset handles. In my case, I've added a breakpoint in a viewset of my Django projects. You can also directly click on the Bug sign on the top bar.Īdd some breakpoints in the code of the Django project. Press Shift + F9 to run the configuration in Debug mode. You get access to the frames and variables plus their values. The Debug mode helps you place a breakpoint on your application's code and analyze the state of your application. Every time you run/debug a server or test in P圜harm, you must first ensure that all Docker images are stopped outside of P圜harm. Pycharm offers two ways to run the Django application. Running a Django application in Debug mode Once you are done, click on Apply, and congrats! You have your first run configuration in Django. The Pycharm version comes with handy options, and feel free to modify it to your needs. The configuration is done, and we are nearly done. You'll be presented with another widget where you have to add some basic configuration so P圜harm can know how to run your application. ![]() The next step is to click on "Add new run configuration" and choose "Python" for the option. Let's create a configuration to run a Django application. ![]() We have no configuration for this project. To create a debug script, click on Run in the navigation bar and choose "Edit Configuration". Open your Django application using P圜harm and make sure to configure a virtual environment. It also comes with robust support for debugging in the applications you are writing and Django.Įven if the professional version definitely has better support for Django, you can use the Community version and configure it for debugging. ![]() P圜harm is a Jetbrains product focusing on the development of Python projects. ![]()
0 Comments
Leave a Reply. |