W
Wybo Dekker
Is it possible to use the debug library while using tk.rb?
It seems to work only as long as the Tk mainloop is not entered...
It seems to work only as long as the Tk mainloop is not entered...
Message-ID: said:Is it possible to use the debug library while using tk.rb?
It seems to work only as long as the Tk mainloop is not entered...
Hidetoshi said:From: Wybo Dekker <[email protected]>
Subject: debugging using tk.rb
Date: Thu, 19 Oct 2006 20:06:23 +0900
# Maybe, the following cannot help you ...
If it is the reason of the trouble that "Tk.mainloop" doesn't
return while the root (main) window is alive, please try to start
"Tk.mainloop" in a Thread (e.g. evloop = Thread.new{Tk.mainloop}).
Wybo said:When I use () instead of {}: evloop =3D Thread.new(Tk.mainloop)
then it starts normally, but there is no difference with just Tk.mainlo= op.
Duh.
Hi --
The discourse on this list seems to have drifted toward the impatient,
critical, and judgmental. Could it perhaps drift back toward
collegiality, based on the fact that we're all involved in the ongoing
process of grasping and productively using various technologies?
David
Message-ID: said:For example, running the Pig Latin Generator from Dave's book
(attached): if I try to debug the pig method with
`break PigBoxig', then hitting the `Pig It' button should stop me in
the pig method, but that doesn't happen. (I can, however) circumvent
this by setting the break point on the line number).
And when I hit the `Exit' button, an error message pops up:
FATAL
One of my real, rather complex, applications says, as soon as I enter
the Tk-window with my mouse:
/home/wybo/bin/adm/admin:4:$: << File.dirname(__FILE__) files
(rdb:1) b ~/bin/admin_transaction.rb:108
Set breakpoint 1 at ~/bin/admin_transaction.rb:108
(rdb:1) c
/usr/local/lib/ruby/1.8/tk/event.rb:443: `invalid value for Integer:
"??"' (ArgumentError)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.