timholy / Rebugger.jl

An expression-level debugger for Julia with a provocative command-line (REPL) user interface
Other
171 stars 18 forks source link

Juno integration #18

Open timholy opened 6 years ago

timholy commented 6 years ago

If @pfitzseb or other Juno users & developers find Rebugger useful, then there may be a number of things we can do to get the two working together. The separation of files in src deliberately split the debugging logic from the REPL user interface. (If necessary we should split them into two separate packages; I'm happy to make changes here to help facilitate their interaction.) To allow the debug logic to be used from Juno, then integration might consist of the following:

As is presumably obvious, most of the work would need to be done on the Juno side. I've been meaning to learn more about Juno's internals so would be happy to help out if necessary and as time permits.

adamryczkowski commented 6 years ago

Great package! Do you know by chance how to use it on Ubuntu 16.04 or 18.04 (if it is possible at all, that is). In particular, what is the Meta key? Left Alt+e brigs terminal menu, esc + e just inserts e and ctrl + e moves cursor to the end of the line.

timholy commented 6 years ago

You probably have shortcuts defined in your window manager. Which one are you using? Works on Kubuntu. There are also docs on changing them.

adamryczkowski commented 6 years ago

At the moment old good Ubuntu 16.04. After digging further I believe the meta is Left Alt.

What set me off is the phrase from the manual:

Meta reliably maps to Esc, and if using Esc you should hit the two keys in sequence rather than simultaneously (...)

Do you mean, that one can modify OS to map Meta to Esc and have more reliable experience, or that in most OSes Meta is usually mapped to Esc (one can find Meta mapped to Esc quite reliably on most systems)?

Anyway, I still cannot make it work. I do not believe Alt+e is assigned by the WM on Ubuntu.

timholy commented 6 years ago

Clearly I should modify that line. I simply meant that Alt-e works on fewer platforms (e.g., OSX) than Esc-e. Until now I didn't realize that any didn't work with Esc-e.

timholy commented 6 years ago

Anyway, I still cannot make it work. I do not believe Alt+e is assigned by the WM on Ubuntu.

Hmm, maybe the terminal program itself assigns this behavior?

If you can't figure out how (or choose not) to configure this away, just pick something you like and follow these instructions in the docs.

timholy commented 6 years ago

https://askubuntu.com/questions/30224/how-to-disable-the-alt-hotkey-behavior-on-gnome-terminal

timholy commented 6 years ago

Let me know if that works and if so I will add this information to the documentation.