Giter Site home page Giter Site logo

any idea how to trace `apply/3` about rexbug HOT 3 CLOSED

nietaki avatar nietaki commented on May 30, 2024
any idea how to trace `apply/3`

from rexbug.

Comments (3)

bryanhuntesl avatar bryanhuntesl commented on May 30, 2024 1

Doesn't look to be a Rexbug issue - tried using redbug (underlying library) and behaviour is the same :

iex(89)> :redbug.start('erlang:apply')
{330, 2}
         
% 15:08:22 <0.841.0>({erlang,apply,2})
% erlang:apply(#Fun<Elixir.IEx.Server.0.85340651>, [])
iex(90)> :erlang.apply(:lists, :join, [",",[1,2]])
[1, ",", 2]
         
% 15:08:25 <0.843.0>({erlang,apply,2})
% erlang:apply(#Fun<Elixir.IEx.Server.0.85340651>, [])
redbug done, timeout - 2

from rexbug.

nietaki avatar nietaki commented on May 30, 2024 1

Seems to work in redbug 2.x, should work correctly in rexbug 2.x:

iex(31)> :redbug.start('erlang:apply')
{110, 2}
         
% 00:38:43 <0.407.0>({erlang,apply,2})
% erlang:apply(#Fun<Elixir.IEx.Server.0.134004696>, [])
iex(32)> :erlang.apply(:lists, :join, [",",[1,2]])
[1, ",", 2]
         
% 00:38:53 <0.408.0>({erlang,apply,2})
% erlang:apply(#Fun<Elixir.IEx.Server.0.134004696>, [])
redbug done, timeout - 2
iex(33)>

from rexbug.

bryanhuntesl avatar bryanhuntesl commented on May 30, 2024

Thinking it was a general issue with BIF's but :lists.reverse/1 traces fine :

iex(116)> :redbug.start('lists:reverse([1,2,3,4,5]) -> return')
{330, 1}
iex(117)> :lists.reverse([1,2,3,4,5])                          
[5, 4, 3, 2, 1]

% 15:24:42 <0.504.0>({'Elixir.IEx.Evaluator',init,4})
% lists:reverse([1,2,3,4,5])
          
% 15:24:42 <0.504.0>({'Elixir.IEx.Evaluator',init,4})
% lists:reverse/1 -> [5,4,3,2,1]

from rexbug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.