LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-18-2004, 06:15 PM   #1
fatherg
Member
 
Registered: Mar 2004
Posts: 55

Rep: Reputation: 15
Making Windows in SDL


Hello, My program runs fine as is, but I wanted to make a debug mode so that when the program executes and debug mode is on, it loads up 2 windows instead of 1 window, the second window would supply me with information on all of my variables and what they are doing as the program progresses. Any body know how to do this?

thx,
fatherg
 
Old 08-19-2004, 12:29 AM   #2
DanTheKiwi
LQ Newbie
 
Registered: Aug 2004
Location: Sydney, Australia
Distribution: FreeBSD, Fedora Core 2
Posts: 20

Rep: Reputation: 0
I know you'd probably prefer to do it the way you want, but can I make a suggestion?

Wouldn't it be a bit better to have debug info printed as output so you could run your program from a terminal, and any error/debug messages would come up there. Because what if for instance a problem arises that stops the program from loading any windows? You won't have your debug info, at least at a terminal you could see why they werent loaded. You could even have a way of tracing variable value changes like:

int i = 3 => int i = 4

Printed on the screen so you can see what a variable changed from, and what its new value is. I dont know just a suggestion

(Sorry I don't know SDL so I can't answer the original question for you)
 
Old 08-19-2004, 01:43 AM   #3
fatherg
Member
 
Registered: Mar 2004
Posts: 55

Original Poster
Rep: Reputation: 15
yeah

Yeah I know what you mean, I'm actually doing that at the moment, but I'd like the window to have a few more features that just simple text input... good idea tho'.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openvpn is making me use windows!!! xnomad Linux - Networking 2 10-28-2005 06:34 AM
Trying to program an SDL application but cannot find the SDL.h file:SuSE 9.2&KDevelop pujolasdf Linux - Newbie 4 03-13-2005 07:50 AM
sdl-perl: disappearing windows jrtayloriv Programming 1 02-02-2005 12:55 AM
Making a Slackware CD in Windows sadiqdm Slackware 0 11-12-2003 06:02 PM
making space for windows... zetsui Linux - Software 6 08-06-2003 10:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration