Questions tagged [rdebug]

20 questions
90
votes
12 answers

Debugging in ruby 1.9

What do you guys use for debugging in ruby 1.9? rdebug doesn't seem to be compatible.. is there anything out there?
cloudhead
  • 15,253
  • 6
  • 42
  • 37
5
votes
2 answers

R: How make dump.frames() include all variables for later post-mortem debugging with debugger()

I have the following code which provokes an error and writes a dump of all frames using dump.frames() as proposed e. g. by Hadley Wickham: a <- -1 b <- "Hello world!" bad.function <- function(value) { log(value) # the log function…
R Yoda
  • 8,358
  • 2
  • 50
  • 87
5
votes
1 answer

Why does my rdebug session say "*** No sourcefile available"

I'm not sure what the pattern of behaviour is but some programs - notably simple rack.ru based ones running in thin - can't easily be debugged. When a breakpoint is tripped, no source is available Note this isn't the same as this other S.O.…
Chris McCauley
  • 25,824
  • 8
  • 48
  • 65
2
votes
0 answers

Mac RStudio [Version 1.4.1106] debugger still not working and showing "Debug location is approximate because the source is not available"

Problem is that in RStudio when I set a breakpoint to debug the code then the debugger is not stepping into my functions properly. Rather it takes me to some unknown lands and gives the warning message "Debug location is approximate because the…
exan
  • 3,236
  • 5
  • 24
  • 38
2
votes
1 answer

Code files are duplicated during debugging in RStudio

I recently have encountered an issue in debugging package code in RStudio. Suppose I have a function in source file, say foo.R, and set a breakpoint in the body of that function. Then when I run something in the console that reaches that breakpoint,…
Russ Lenth
  • 5,922
  • 2
  • 13
  • 21
2
votes
1 answer

Ideas for troubleshooting emacs error: "apply: Spawning child process: exec format error"

I'm trying to use rdebug with emacs and cygwin and I'm running into trouble. Whenever I do a M-x rdebug and give it the appropriate script to run, it stops with the error "apply: Spawning child process: exec format error" From some googling, it…
Rohith
  • 2,043
  • 1
  • 17
  • 42
1
vote
2 answers

Why do I get a segmentation fault with -rdebug option?

My code gives me a segmentation fault when I run it with the rdebug option on command line: font_size = {"ft0"=>26, "ft1"=>10, "ft2"=>8, "ft3"=>9, "ft4"=>9, "ft5"=>7, "ft6"=>8, "ft7"=>9, "ft8"=>7, "ft9"=>8, "ft10"=>9, "ft11"=>8} classes = ["ft3",…
ppaul74
  • 751
  • 1
  • 13
  • 21
1
vote
1 answer

Why is the VSCode remote debug session not engaged when code is run at a breakpoint in Ruby on Rails?

I’m using VSCode 1.61.1 on Mac Big Sur with a Rails 4.2 application (ruby-debug-ide 0.7.3, debase 0.2.2.beta10), running with a Unicorn app server. The Rails app runs on a virtual server (built through Vagrant). I have exposed all the necessary…
Dave
  • 15,639
  • 133
  • 442
  • 830
1
vote
0 answers

R S3 generic methods set to visible FALSE

I have an R object lf which is an element of the class tbl_lazy: library(dbplyr) lf <- lazy_frame(a = TRUE, b = 1, c = 2, d = "z", con = simulate_hana()) >class(lf) [1] "tbl_HDB" "tbl_lazy" "tbl" With the help of the sloop package, I can see that…
jamoreiras
  • 315
  • 1
  • 14
1
vote
0 answers

How can I debug a rails console or server running with spring in RubyMine?

Rubymine has support for spring but according to the docs it doesn't apply to the console nor server, and in any event is disabled when debugging. It is possible to use remote debugging, launching an rdebug-ide under spring, and attaching that to…
aceofspades
  • 7,568
  • 1
  • 35
  • 48
1
vote
1 answer

Debugging Rails and Trinidad

I'm working on a rails 3 app that uses trinidad. I've been using RubyMine(4.5), but can't for the life of me figure out how to debug the app. It runs fine from the IDE in non-debug mode, but when you try to debug it says that it can't debug trinidad…
stephenp
  • 57
  • 4
1
vote
1 answer

rdebug continue past breakpoints

I have put some debugger breakpoints in my rails app within some long loops. After hitting the breakpoint and evaluating what I need, is there a way to continue ignoring the rest of my break points?
pho3nixf1re
  • 2,322
  • 2
  • 15
  • 13
0
votes
1 answer

Starting up rdebug connects, but then what am I to do?

I'm using POW and Rdebug, and I have it all seemingly working because when I type : rdebug -c It returns : Connected. But now what? I have debugger placed in a partial call. I can tell the application hits the breakpoint because it stalls on the…
Trip
  • 26,756
  • 46
  • 158
  • 277
0
votes
1 answer

How can I use rdebug with pow rack server

I'm developing Rails apps using pow as the local server. I want to be able to connect to the debugger when dropping a debugger line in my ruby code, just as you would to webrick server.
danott
  • 923
  • 1
  • 8
  • 14
0
votes
0 answers

RubyMine Rails Remote Debug rdebug-ide

I'm using RubeMine to develop RAILS code. And I'm using remote debugging between RubyMine and rdebug-ide. All works very well, but there is a minor point the debugger failes. In RAILS I'm using in the MODEL : has_one_attached :paper When running…
Sven Kirsten
  • 478
  • 1
  • 8
  • 27
1
2