Skip to content

Commit c9d4e58

Browse files
committed
Update project-ideas.md
1 parent a84fc5e commit c9d4e58

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎v3/docs/project-ideas.md‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,17 @@ and other internal guts aren't altered too much. But I don't care a ton about C
329329
doesn't really use C modules. (Update in July 2013 -- it seems like hacks to CPython core data structures are
330330
intrusive enough to preclude C module object compatibility. But that's not a big deal.)
331331

332+
333+
#### Early Prototype (July 2013)
334+
332335
In early July 2013, I made some initial steps toward this goal as a proof-of-concept and am fairly encouraged by
333-
my findings so far. To support this finer-grained intra-line stepping, I hacked CPython 2.7.5 to:
336+
my findings so far. [**Try the prototype now**](http://pythontutor.com/visualize.html#py=2crazy) by selecting
337+
"2.crazy" as the Python version. Note that the (approximate) column of the currently-executing bytecode
338+
instruction is highlighed in yellow.
339+
340+
[Try the prototype on a simple example.](http://pythontutor.com/visualize.html#code=def+foo()%3A%0A++return+True%0A%0Ax+%3D+3%0Ay+%3D+5%0A%0Aif+foo()+and+(x+%2B+y+%3E+7)%3A%0A++print+'YES'%0Aelse%3A%0A++print+'NO'&mode=display&cumulative=false&heapPrimitives=false&drawParentPointers=false&textReferences=false&showOnlyOutputs=false&py=2crazy&curInstr=0)
341+
342+
To support this finer-grained intra-line stepping, I hacked CPython 2.7.5 to:
334343

335344
1. call the trace function at each bytecode rather than each time a new line is executed, which turns it into a bytecode-level stepper
336345
2. disable the peephole optimizer so that bytecodes match source code more closely

0 commit comments

Comments
 (0)