First time here? Check out the FAQ!
1

Does anyone know how to get Wing to run its debug process in an iTerm2 window on Mac OS?

I tried to follow the advice in Wing's documentation at https://wingware.com/doc/debug/external…, but I have't so far been able to create a working recipe. Since I started to work with textual https://textual.textualize.io/ this has become more important, since it has a fairly intimate relationship with the terminal as a TUI, and a debug console window full of escape codes helps not at all.

Separately, the Forum link format [...](link) seems to be evaporating the links, even though they show up in preview, unless I'm just making some silly mistake.

Steve Holden's avatar
61
Steve Holden
asked 2024-05-04 10:26:35 -0600
Wingware Support's avatar
4.2k
Wingware Support
updated 2024-05-05 01:16:45 -0600
edit flag offensive 0 remove flag close merge delete

Comments

I think a shell / Python script similar to the one used for the default macOS Terminal app is needed. Wing wants to launch a new process that will display the terminal and run a command line in it. The script for the default macOS Terminal app is Contents/Resources/resources/osx/run-in-terminal.applescript within the Wing app bundle. You can add new scripts via the External Consoles preference on the Debugger > I/O page of Wing's Preferences dialog.

Wingware Support's avatar Wingware Support (2024-05-06 16:20:21 -0600) edit
add a comment see more comments

1 Answer

1

:-D In fact I didn't find even the macOS Terminal installable from my own knowledge, so rather than keep bothering people I decided instead simply to run the programs in an external window and have them call into Wing for debugging. That's working beautifully.

updated 2024-05-07 11:14:42 -0600
This post is a wiki. Anyone with karma >75 is welcome to improve it.
edit flag offensive 0 remove flag delete link

Comments

The macOS Terminal should work out of the box by selecting the option to use an external console in preference.

Wingware Support's avatar Wingware Support (2024-05-07 17:04:48 -0600) edit

Thanks for your reply. I'm sure it would work perfectly well, but unfortunately during my incautious stabbings around I appear to have erased it, and I'm loathe to reset everything to factory to get it back - is there a more selective way, please, that my imagination has failed to conjure up?

Steve Holden's avatar Steve Holden (2024-05-08 03:06:11 -0600) edit

Looks like the default command line for this for the Debugger > I/O > External Consoles preference is:

${WINGHOME}/resources/osx/run-in-terminal.applescript

Wingware Support's avatar Wingware Support (2024-05-08 05:03:02 -0600) edit
1

Thanks - that does indeed work!

Steve Holden's avatar Steve Holden (2024-05-08 05:36:24 -0600) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer