::high five:: printf is the best
Someone should sell a shirt that says “I debug with printf mofo”
[mailto:sdl-bounces+atrix2=cox.net at libsdl.org] On Behalf Of Andrew Kreps
[fbcon,Linux]Ah, printf(). That function has been single-handedly debugging my
applications since 1992.I’ve compiled libsdl to render to the framebuffer in Linux [vesafb,
linux2.6.17] and things are fine… almost. All SDL apps I’ve tried [many
of
thedemos from libsdl.org site] wait for a ^C before they start any
rendering.It sounds like the fbcon code is blocking on a device open. You could
try
putting printf() statements in the SDL fbcon initialization code to see
how
far it’s getting…
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl
Ohhhh yeah. I’d definately buy one of them shirts :).
A while back I wrote a debug with collapsing trees for
branching/functions/loops/etc, stdarg + snprintf + modular backend = ooie
gooie goodness. redirects to a file, a serial port, a udp port, etc, all
yummy… and vastly preferred over any debugger. A trace of what’s
happening is much more useful than simple NMI catches at a particular point
or swapping between debugger/app for breakpoint/stepping through code… or
dealing with the hassle of remote debugging on whatever platform you’re
running…
Investing a day of time into a modular & useful debug.c/h is a day of code
you’ll carry with you to every project :). Too bad my recent 8051 project
can’t use it.
-WillOn 7/11/06, Alan Wolfe wrote:
-----Original Message-----
From: sdl-bounces+atrix2=cox.net at libsdl.org
Sent: Tuesday, July 11, 2006 1:56 PM
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: Re: [SDL] all SDL apps require ^C to start before rendering
On 7/10/06, Sam Lantinga wrote: