[Ohrrpgce] SVN: teeemcee/8471 Add "Test Game with GDB" option

Ralph Versteegen teeemcee at gmail.com
Tue Feb 28 10:04:41 PST 2017


On 1 March 2017 at 04:48, James Paige <Bob at hamsterrepublic.com> wrote:

>
>
> On Tue, Feb 28, 2017 at 7:15 AM, <subversion at hamsterrepublic.com> wrote:
>
>> teeemcee
>> 2017-02-28 07:15:10 -0800 (Tue, 28 Feb 2017)
>> 759
>> Add "Test Game with GDB" option
>>
>> Access either from spam menu, or hold down Shift when selecting Test Game
>> (holding Shift works both in the main menu and F9 menu)
>>
>
> Nifty!
>
>
>> Works on Linux and Windows, but probably not on OSX, because it requires
>> xterm. Maybe if you were to install X11 on OSX
>>
>
> You know, we could probably replace the xterm specific stuff with some
> code that checks for various common terminal programs, and launches the
> first one it finds.
>
> On Linux it could search for xterm, gnome-terminal, xfce4-terminal, kterm
> and of course I would have to look up the correct syntax for passing
> commands to each.
>

Yes, and I prefer any of those to xterm anyway, but it seemed like some
bother.


>
> On Mac it looks like we can do something like:
>
>    open -b com.apple.terminal ./command_to_run.sh
>

Huh, I haven't seen the -b argument to 'open' before. If we can avoid using
AppleScript to invoke a terminal that would be great! The big problem with
the way we currently invoke a terminal is that it doesn't return stdout,
stderr, the exitcode, or even tell if the terminal could be invoked, let
alone the script.


>
>
>> Note the following quirks:
>> -gdb will break as soon as the channel to Custom has been opened
>>  (while processing commandline options), which is before setmodex,
>>  so you need to 'c'ontinue to see the window
>> -on Unix, Ctrl-C in Custom's terminal will immediately kill Game as
>>  well because it's sent to the whole process group, instead of
>>  gdb intercepting it, which is quite annoying
>> -on Windows, Ctrl-C does nothing (whether using this feature or just
>>  running gdb normally)
>> ---
>> U   wip/custom.bas
>> U   wip/customsubs.bi
>> U   wip/customsubs.rbas
>> U   wip/game.bas
>> U   wip/yetmore2.bas
>> _______________________________________________
>> Ohrrpgce mailing list
>> ohrrpgce at lists.motherhamster.org
>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>
>
>
> _______________________________________________
> Ohrrpgce mailing list
> ohrrpgce at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20170301/46ffdd74/attachment-0001.htm>


More information about the Ohrrpgce mailing list