User forums > Using Code::Blocks
No console output window while debugging console app on Mac OS X
afb:
--- Quote from: oBFusCATed on June 07, 2010, 07:48:47 pm ---I've looked at the code and the tty thing is compiled only for wxgtk = linux/freebsd
--- End quote ---
Yeah, it would need porting. The AppleScript thing is only for Build/Run, not Debug/Start.
--- Quote ---An easy fix (if it works) is to replace
#ifdef __WXGTK__
with
#ifndef __WXMSW__
--- End quote ---
The code would look more like /dev/ttyp#, than /dev/pts/# (a little BSD vs. GNU thing)
Most likely the current wxGTK code is broken on FreeBSD too, as it seems to be rather Linux-specific ?
oBFusCATed:
I've never tried it on freebsd and no one has reported that is broken (at least recently)
edwin:
Thanks to both of you for posting this additional information…
If you two gents would like me to modify the source code and run a few tests, I can certainly make an effort to squeeze it in to my schedule to try to verify an update/fix. I would need your suggested code changes for testing seeing I am not completely up to speed with all the CodeBlocks source code and internal logic yet.
Thank you,
edwin
afb:
--- Quote from: oBFusCATed on June 07, 2010, 09:04:32 pm ---I've never tried it on freebsd and no one has reported that is broken (at least recently)
--- End quote ---
I spoke too soon, /dev/pts/ was mostly in the comments - it should be fine with /dev/ttyp:
--- Code: ---ps x -o tty,pid,command
--- End code ---
So the suggested fix should be good (haven't tried it yet).
edwin:
I can test a possible change/fix if either of you can spoon feed me a bit more…
So if I implement the following change:
--- Quote ---An easy fix (if it works) is to replace
#ifdef __WXGTK__
with
#ifndef __WXMSW__
--- End quote ---
…that is our best bet to get the debug terminal window working on OS X and that would also not break the build for Windows and Linux using the same code base?
I have a build environment all ready to go and could test a change as soon as I can squeeze it in.
Thank you for your efforts. Supurb support.
edwin
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version