Thursday, October 20, 2016

Re: How to: Django development and debugging

- Very rarely would they debug an application
- i.e. majority of the time they don't launch the application in debug mode 

By "debug mode" I guess you mean stepping into the code, stopping at breakpoints, etc. I wouldn't say I do it rarely, I do it quite often. I add "import ipdb; ipdb.set_trace()" in the code, at the place I want it to stop, and then I can step and so on. It sucks when you compare it to great debuggers (I have experience in Delphi and I'm missing the debugger much when I program in Python), but it's better than nothing. I've heard PyCharm's decent in that, but I haven't tried it (yet).

Antonis Christofides  http://djangodeployment.com
On 2016-10-21 00:55, Don Thilaka Jayamanne wrote:
Hi Everyone, I'm the author of a Python plugin for the VS Code editor (https://github.com/DonJayamanne/pythonVSCode). Basically it provides intellisense, code navigation, debugging (django, multi threads, etc), data science and the like.

When it comes to debugging django applications, today the extension disables (doesn't support) live reloading of django applications.

I'm thinking of having a look at this particular area. Before I do so, I'd like to get an idea of how developers actually develop and debug django applications.

Most of the people i've spoken to say they develop as follows:
- Fire up the django application with live reload 
- Start codeing
- Test in the browser
- Very rarely would they debug an application
- i.e. majority of the time they don't launch the application in debug mode 

How do you work on django applications?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/249e5555-3721-40a6-a351-99eb33ae1f77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment