Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

gcoh

  • one year ago

In Python 2.6; how can I see line by line the execution of the code I have typed? When I run a module and I don't get a syntax error message and I see the prompt sign; why won't the program execute?

  • This Question is Open
  1. e.mccormick
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    That would be using the debugger. http://www.cs.uky.edu/~paulp/CS115S11/DebugIdle.htm Most programmers rarely use a debugger. Instead they print or log a few key values and work from there.

  2. deezee
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Exactly what I was going to say throw a print statement in at key events.

  3. peter_b
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    That is what I usually do as well - use print statements liberally during your debug phase when writing new code. you can comment them out later or delete them completely.

  4. rsmith6559
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    The module probably is running, but if it doesn't have any output, it won't output anything. The computer will only do exactly what you tell it to, not what you want it to!

  5. Donn
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    http://pythontutor.com/visualize.html#

  6. Not the answer you are looking for?
    Search for more explanations.

    Search OpenStudy
    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.