Skip to content
This repository was archived by the owner on Nov 15, 2021. It is now read-only.
This repository was archived by the owner on Nov 15, 2021. It is now read-only.

set linetrace on not working? #39

Open

Description

@tcwinn

I'm trying out the tutorial example and got nothing:
/home/netflow/dev/triangle.rb:6
0.upto(n) do |i|
(rdb:1) p tri
0
(rdb:1) display tri
1: tri = 0
(rdb:1) display i
2: i =
(rdb:1) set linetrace on
line tracing is on.
(rdb:1) finish
6

I'm expecting

(rdb:1) display i
2: i =
(rdb:1) set linetrace on
line tracing is on.
(rdb:1) finish
Tracing(1):triangle.rb:7 tri += i
1: tri = 0
2: i = 0
Tracing(1):triangle.rb:7 tri += i
1: tri = 0
2: i = 1
Tracing(1):triangle.rb:7 tri += i
1: tri = 1
2: i = 2
Tracing(1):triangle.rb:7 tri += i
1: tri = 3
2: i = 3
Tracing(1):triangle.rb:9 return tri
1: tri = 6
2: i =

Activity

  1. cldwalker commented on Sep 8, 2012

    @cldwalker
    Owner

    I've confirmed set linetrace and set linetrace+ don't work in debugger. I've also confirmed they don't work in the latest ruby-debug19. This makes me wonder if they ever worked in 1.9.x. I've leave this as a bug for now. I may eventually remove support for this if no one steps up to fix it (I don't use this feature). It would be nice to have a guide in the future that's specific to debugger

  2. deivid-rodriguez commented on May 17, 2013

    @deivid-rodriguez

    Does it work if you set it with trace on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions