Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
MASTERING PYCHARM

You're reading from   MASTERING PYCHARM Use PyCharm with fluid efficiency to write idiomatic python code

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781783551316
Length 232 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Nafiul Islam Nafiul Islam
Author Profile Icon Nafiul Islam
Nafiul Islam
Arrow right icon
View More author details
Toc

Chapter 6. Debugging

 

There is no freedom quite like the freedom of being constantly underestimated."

 
 --Scott Lynch

When I first started programming, I used print statements. Having to write this book, I took a look at some of my earliest code samples, and it turns out that most of it was commented out print statements used for checking the value of variables. Note that I started off writing C using Notepad, and compiling all that through the command line, so no green run button and no IDE. I knew about GDB, but it was so hard to even set a simple breakpoint that I stuck to my print statements. Most of the bugs I had encountered so far had been obvious bugs staring at me in the face. After a few mishaps, I started to print everything that I could so that I could take a look at where the program was and what was happening, making sure not to underestimate bugs or the extent of my own stupidity.

In this chapter, we are going to be talking about PyCharm's...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime