[erlang-questions] Debugger hangs
Brandon Clark
a.brandon.clark@REDACTED
Mon Dec 16 20:49:17 CET 2013
I've had this same problem since R15. I see two issues. First, the
debugger hangs when you run it using the Quartz-enabled version of "wish"
that comes with OS X. Second, the port handler hasn't been upgraded to
accommodate wish 8.6, so even if you install a new Tk port, Erlang will
still prefer Apple's wish unless you do something to coerce it.
This an ugly solution, but here's how I made the debugger usable on Mac OS
X:
1. Install the x11 variant of the Tk port, ("port install tk +x11"). This
will install wish as /opt/local/bin/wish8.6. If you run
/opt/local/bin/wish8.6 from the command line and either of these icons
appears, then you're still using Quartz; uninstall Tk and try again:
[image: Inline image 1] [image: Inline image 3]
You should see only the app icon for the X11 server, e.g:
[image: Inline image 2]
2. Make sure your PATH lists /opt/local/bin before /usr/bin.
3. Create a symlink to trick the port handler into using the new port.
sudo ln -s /opt/local/bin/wish8.6 /opt/local/bin/wish85
Here's why it's necessary:
When starting wish, the port handler
(/opt/local/lib/erlang/lib/gs-1.5.15.2/src/gstk_port_handler.erl) looks for
these executables in order:
46 -define(WISHNAMES, ["wish85","wish8.5",
47 "wish84","wish8.4",
48 "wish83","wish8.3",
49 "wish82","wish8.2",
50 "wish"]).
Notice that wish 8.6 isn't in the list. That's why it always finds the
Apple version first. If your path places /opt/local/bin before /usr/bin,
creating the symlink will cause it to find the upgraded wish8.6 first.
If you don't like the symlink solution, you can also modify the code. Edit
/opt/local/lib/erlang/lib/gs-1.5.15.2/src/gstk_port_handler.erl, and change
WISHLIST to include wish8.6:
46 -define(WISHNAMES, ["wish8.6","wish85","wish8.5",
47 "wish84","wish8.4",
48 "wish83","wish8.3",
49 "wish82","wish8.2",
50 "wish"]).
Or you can simply re-order the list to cause it to respect whatever version
of "wish" comes first in your path. This is probably more elegant:
46 -define(WISHNAMES, ["wish","wish85","wish8.5",
47 "wish84","wish8.4",
48 "wish83","wish8.3",
49 "wish82","wish8.2"]).
When you're done editing, then:
cd /opt/local/lib/erlang/lib/gs-1.5.15.2/
rebar compile
And that's it. You should have a debugger now.
~BC
On Sun, Dec 15, 2013 at 11:51 AM, Denis Justinek
<denis.justinek@REDACTED>wrote:
> Hello.
>
> Has anyone found a solution to this problem?
>
> It can also be reproduced on OS X 10.8 / 10.9 : Resizing the debugger
> window freezes the GUI and makes it unresponsive.
>
> --
>
> Denis
>
> 2013/9/3 Yves S. Garret <yoursurrogategod@REDACTED>
>
>> Hello,
>>
>> I'm running this on a Mac OS X 10.7.5. I have release 16B01. Whenever I
>> start up the debugger
>> and then increase the size of the windows (by dragging the borders), the
>> whole setup just hangs. It
>> doesn't come back to me, but sits there and doesn't do anything.
>>
>> Has anyone else had this problem? How did you get around it?
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131216/c78dfd3b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2013-12-16 at 11.33.45 AM.png
Type: image/png
Size: 7640 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131216/c78dfd3b/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2013-12-16 at 11.23.16 AM.png
Type: image/png
Size: 6972 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131216/c78dfd3b/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2013-12-16 at 11.45.59 AM.png
Type: image/png
Size: 6426 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131216/c78dfd3b/attachment-0002.png>
More information about the erlang-questions
mailing list