Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

JuliaDebug/ASTInterpreter2.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5a7b8ce · Dec 6, 2019
Jan 27, 2019
Feb 4, 2019
Feb 4, 2019
Feb 1, 2019
Jan 27, 2019
Feb 4, 2019
Aug 19, 2017
Jan 27, 2019
Jan 27, 2019
Dec 6, 2019
Nov 22, 2018
Jan 9, 2019

Repository files navigation

ASTInterpreter2

Build Status codecov.io

NOTE: this package is deprecated. Use Debugger.jl or Juno, both of which use JuliaInterpeter.

Installation

using Pkg
]add ASTInterpreter2#master
]add DebuggerFramework#master

Usage

using ASTInterpreter2

function foo(n)
    x = n+1
    ((BigInt[1 1; 1 0])^x)[2,1]
end

@enter foo(20)

Basic Commands:

  • n steps to the next line
  • s steps into the next call
  • finish runs to the end of the function
  • bt shows a simple backtrace
  • `stuff runs stuff in the current frame's context
  • fr v will show all variables in the current frame
  • f n where n is an integer, will go to the n-th frame.

Advanced commands:

  • nc steps to the next call
  • ns steps to the next statement
  • se does one expression step
  • si does the same but steps into a call if a call is the next expression
  • sg steps into a generated function
  • shadow shows the internal representation of the expression tree (for debugger debugging only)
  • loc shows the column data for the current top frame, in the same format as JuliaParsers's testshell.

This is a prototype, do not expect it to be correct or usable.