Sunday, October 23, 2016

Re: How to: Django development and debugging

@Luis Zárate 
>I dislike VS as IDE but
Please remember, this is Visual Studio Code (cross platform, open source, free) and not to be confused with Visual Sutdio IDE (full blown IDE runs only on Windows)

>great if you want to support Django there
Django is supported today (including template debugging). Right now i'm looking at the need for debugging with auto-reload.

On Monday, 24 October 2016 03:40:35 UTC+11, luisza14 wrote:
I rarelly debug code with django, with external utility, just trace stack when errors appears, buy when I need it I use pydev over Aptana,  it has heap monitor, breakpoints, step by step run and other debugger functions.

One important thing is that I need to say to pydev that  run django with --no-autoreload parameter, so then works well because when I am debugging I am not coding and I can start or stop the server when I want.

I always run django in external terminal when I am coding, I really like the autoreload, I think it's better if the IDE can reload, but I really hate when Aptana is configured wrong and server never die, because I need to user $ killall python (or some like that) to stop django.

I dislike VS as IDE but, great if you want to support Django there.

El viernes, 21 de octubre de 2016, Muizudeen Kusimo <devb...@gmail.com> escribió:
> Hello Folks,
> PyCharm makes debugging Django (and other Python) applications very easy. Some of the features which are very helpful include:
>
> Ability to choose specific Python Interpreter you want to run the code base against. Useful if you use virtualenv and need to test your code in different Python versions
> Standard debugging tools - Step Into, Step Over, Step Out, Watches
> Support for debugging other Python libraries tied to your Django application e.g. Lettuce BDD tests, Unit Tests e.t.c
>
> It's definitely worth a try as you can get a lot from the Community Edition
> Regards
> On Thursday, October 20, 2016 at 8:30:45 PM UTC-4, 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...@googlegroups.com.
> To post to this group, send email to django...@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/d5c69cfc-7bec-4df9-9112-3b0f74c0ab5d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

--
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/abd6e785-d6f3-42f7-a7ad-436cb98aa223%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment