Skip to content

@trace yields no visible output #9

@bit-player

Description

@bit-player

Traceur appears to install correctly, and I see no error messages either when using or when invoking the @trace macro, but I also see no trace output, just the returned value of the function.

ASTInterpreter2 seems to be working normally.

[Thanks for developing Traceur! Looks great. Hope to get it working.]

   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.3 (2018-05-28 20:20 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-apple-darwin14.5.0

julia> Pkg.status("Traceur")
 - Traceur                       0.1.1
julia> Pkg.status("ASTInterpreter2")
 - ASTInterpreter2               0.1.1

julia> using Traceur

julia> f(n) = n < 0 ? 0 : n
f (generic function with 1 method)

julia> f(8)
8

julia> @trace f(8)
8

julia> using ASTInterpreter2

julia> @enter f(8)
In f(n) at REPL[5]:1
1 f(n) = n < 0 ? 0 : n

About to run: (<)(8, 0)
1|debug > n
In f(n) at REPL[5]:1
1 f(n) = n < 0 ? 0 : n

About to run: return 8
1|debug > n
8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions