All Questions
Tagged with read-eval-print-loop debugging
35 questions
1
vote
1
answer
604
views
Intellij IDEA returns different results with vs. without enabled REPL for Kotlin
I create a Kotlin scratch file in Intellij IDEA and use my current project's module classpath in order to access all libraries of the project (i'm using Jackson in this example)
In both scenarios I ...
3
votes
1
answer
4k
views
How to debug a meson.build file?
I am learning to code build "scripts" of Meson.
I have been wrote a lot of mistakes in my meson.build file, and the only method to check/debug my file is launch $ meson compile -C build and ...
2
votes
0
answers
334
views
How to return to PyCharm's interactive pydev debugger/REPL on a breakpoint with "Emulate terminal in output console" enabled in the run configuration?
I'm using the rich library for progress/status indicators as well as coloring the log output to more easily make sense of it at a glance.
To enable rich's formatting in PyCharm's pydev debugger, one ...
2
votes
1
answer
248
views
Why is Julia's Infiltrator package scrambling my REPL input?
I am using Visual Studio Code with the Julia plugin. Regular debugging is impossibly slow, so I a tried to use the package Infiltrator.jl. I insert @infiltrate where I want execution to stop, just ...
2
votes
3
answers
229
views
Clojure: capture runtime value of function arg, to use in REPL
Problem
My web front-end calls back-end queries with complex arguments. During development, to avoid time-consuming manual replication of those arguments, I want to capture their values in Vars, which ...
0
votes
0
answers
55
views
Sending commands to and receiving their output from a running Python application (via remote connection)
I have a long-running server application written in Python 3, which I would like to interactively debug from time to time. For that I would like to run Python commands "within" the server ...
-2
votes
1
answer
274
views
Does exist a similar REPL for JavaScript in the browser, like Pry for Ruby development?
I experienced that the Pry introspection gem https://github.com/pry/pry for Ruby makes the program develompent easier a lot: one can stop the program at a given point with the statement "binding.pry", ...
0
votes
0
answers
1k
views
Cannot create Swift scratch context in LLDB (couldn't load the Swift stdlib)
I have a swift module managed by CocoaPods, the spec file looks like this:
s.source_files="#{root}/xxx-umbrella.h","#{root}/Classes/**/*.{h,m,swift}"
s.swift_version = '5.0'
s.pod_target_xcconfig =...
2
votes
1
answer
1k
views
What's the difference between binding.pry and Pry.start?
require 'pry'
var = "variable"
class Gnar
def self.gar
@var = "lar!"
# binding.pry
# Pry.start(binding)
# Pry.start
end
end
Gnar.gar
When I uncomment binding....
0
votes
2
answers
738
views
How to exit LispWorks REPL debugger, returning to top level typing just a number, like SBCL?
I am currently using LispWorks, and I would like to setup the REPL so that I can exit the debugger simply by typing the number corresponding to (abort) Return to top loop level 0, the same way one can ...
0
votes
0
answers
414
views
How can I debug a dynamically defined method with Ruby? (method created within repl session)
Is it possible to debug dynamically defined method in Ruby? If so, how can I achieve it?
So I opened a new Pry session and first tried it like this:
require "byebug"
def hello(x)
byebug
x += 1
...
1
vote
0
answers
43
views
node - diagnostics with repl.start() - access to all variables etc
I'm running a server with node.js (espress). I've defined a diagnostic/debugging function which I can add to any controller. The function mostly just prints out values of certain variables in the ...
1
vote
0
answers
464
views
WebDriverIO: browser.debug() to enter REPL, but any command causes it to hang
I threw in a browser.debug() into my test so that I can view my code real-time in the browser. It successfully pauses the browser, but any command I type into the REPL causes it to hang, and I can't ...
0
votes
1
answer
711
views
node debug / inspect require returns undefined
I wanted to have a convenience "node shell" that loaded some commonly used models so I could interact with them and the database. Seems node inspect app_shell.js fails to import (require) the script ...
12
votes
2
answers
3k
views
Is it possible to use the c# "interactive window" instead of the immediate window in VS2017
The C# "interactive window" is more fully featured than the "immediate window". Is it possible to load the debug context into it during a debug session?