gwald
Member
|
Console debugging?
Hello,
Simple question, I'm hoping it's just my noob stupidity!
Console debugging? how?
I searched and searched found this:
http://esenthel.com/community/showthread.php?tid=3569
But, I doubt it's v2 compatible.
I found more info here:
http://www.esenthel.com/community/showth...ht=console
(10-06-2010 07:45 PM)Esenthel Wrote: I guess you can manually spawn a console window using WIN API
you can also do Log and write text to log.txt, then look it up
(10-13-2010 02:00 AM)Masterxilo Wrote: @zerooo: Make sure windows.h and stdio.h are included, then just do:
Code:
AllocConsole(); freopen("CONIN$","rb",stdin); freopen("CONOUT$","wb",stdout); freopen("CONOUT$","wb",stderr);
And printf/cout/cin/scanf will work on the standard console again.
See thread for more info.
And
http://www.esenthel.com/community/showth...e#pid15381
v2.21 const_mem_addr struct TextBox : GuiObj // Gui TextBox !! must be stored in constant memory address !! TextBox is not yet implemented !!
http://www.esenthel.com/community/showth...ht=console
(12-17-2009 04:36 PM)Esenthel Wrote: there is no support for external console windows,
you can use D.text for drawing messages, or use Gui with windows/list/regions
or output to file using Log* functions
I'll go with the log method, thanks.
Esenthel can you please put something like this:
Log functions are useful for debugging as there is no console support.
In the misc.h file near the log functions please?
I would have found it 1 hour ago when I searched for debug and console etc.
My Blog
http://www.esenthel.com/community/showthread.php?tid=6043
I hang out at Esenthel IRC Channel
http://webchat.freenode.net/?channels=#Esenthel
(This post was last modified: 02-28-2013 03:07 AM by gwald.)
|
|
02-28-2013 02:37 AM |
|
Esenthel
Administrator
|
RE: Console debugging?
Maybe I'll just add LogConsole function that opens the console for you and make Log functions output there as well
|
|
02-28-2013 12:49 PM |
|
gwald
Member
|
RE: Console debugging?
Hi,
log works very well, it was just finding it
My Blog
http://www.esenthel.com/community/showthread.php?tid=6043
I hang out at Esenthel IRC Channel
http://webchat.freenode.net/?channels=#Esenthel
|
|
02-28-2013 01:34 PM |
|