Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

gcoh Group Title

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?

  • 8 months ago
  • 8 months ago

  • This Question is Open
  1. e.mccormick Group Title
    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.

    • 8 months ago
  2. deezee Group Title
    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.

    • 8 months ago
  3. peter_b Group Title
    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.

    • 8 months ago
  4. rsmith6559 Group Title
    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!

    • 8 months ago
  5. Donn Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

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

    • 8 months ago
    • Attachments:

See more questions >>>

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.