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

set linetrace on not working? #39

Open
tcwinn opened this issue Aug 18, 2012 · 2 comments
Open

set linetrace on not working? #39

tcwinn opened this issue Aug 18, 2012 · 2 comments
Labels

Comments

@tcwinn
Copy link

tcwinn commented Aug 18, 2012

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 =

@cldwalker
Copy link
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

@deivid-rodriguez
Copy link

Does it work if you set it with trace on?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants