Debugging (Django) application
in PyCharm

Pavel Kočí
@pavelkoci

PyVo/Rubyslava - November 2013
How to get some debugging data?
Common sophisticated debugging tools:
●

●

●

Perl:
warn...
PHP:
echo...
Python:
print......
How to get some debugging data?
Common sophisticated debugging tools:
●

●

●

Perl:
warn...
PHP:
echo...
Python:
print......
Use debugger!
When and why to use debugger?
When:
●
large project
●
3rd party library crash
●
really poorly written code
Why:
●
●

●

br...
Breakpoints
●
●
●

●

Standard breakpoint
Conditional breakpoint
Enable breakpoint after another breakpoint hit
What happe...
Investigation of the variables and objects
●
●

Frames stack
Variables and object in selected frame context
Investigation of the variables and objects
●

Evaluate expression in current frame context
More in PyCharm
●
●
●

Exception breakpoint
Javascript debugging - Firefox or Chrome support
Template debugging - Django, ...
More about PyCharm
●
●

●
●
●

●

Professional Edition - paid
Community Edition – free, open-source,
but without Django su...
Thanks
...
Upcoming SlideShare
Loading in...5
×

Debugging (Django) application in PyCharm

1,222

Published on

Debugging (Django) application in PyCharm
PyVo/Rubyslava - November 2013

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,222
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Debugging (Django) application in PyCharm

  1. 1. Debugging (Django) application in PyCharm Pavel Kočí @pavelkoci PyVo/Rubyslava - November 2013
  2. 2. How to get some debugging data? Common sophisticated debugging tools: ● ● ● Perl: warn... PHP: echo... Python: print... logger...
  3. 3. How to get some debugging data? Common sophisticated debugging tools: ● ● ● Perl: warn... PHP: echo... Python: print... logger...
  4. 4. Use debugger!
  5. 5. When and why to use debugger? When: ● large project ● 3rd party library crash ● really poorly written code Why: ● ● ● breakpoints investigation of the variables and objects stepping through program
  6. 6. Breakpoints ● ● ● ● Standard breakpoint Conditional breakpoint Enable breakpoint after another breakpoint hit What happens ● suspend application ● log message to console ● log evaluated expression
  7. 7. Investigation of the variables and objects ● ● Frames stack Variables and object in selected frame context
  8. 8. Investigation of the variables and objects ● Evaluate expression in current frame context
  9. 9. More in PyCharm ● ● ● Exception breakpoint Javascript debugging - Firefox or Chrome support Template debugging - Django, Mako, Jinja2, Web2Py, Chameleon
  10. 10. More about PyCharm ● ● ● ● ● ● Professional Edition - paid Community Edition – free, open-source, but without Django support, ... VCS support Databases and SQL support VirtualEnv support http://www.jetbrains.com/pycharm/
  11. 11. Thanks ...
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×