Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Debugging with movie quotes  (Read 1649 times)
0 Members and 1 Guest are viewing this topic.
Offline Cero
« Posted 2012-06-21 15:17:10 »

This might be random.

When I debug I use the console a lot of course.
However when I debug little things here and there, which are quickly fixed, I tend to print out movie quotes instead of something else.

So I don't know, if you cannot even image, an example would be, when debugging if an object is null, I expect it to be null, and my printout would be "I see dead people" or "It's Alive!" - you know that kinda stuff.

Am I wierd ? :>

Offline gimbal

JGO Knight


Medals: 25



« Reply #1 - Posted 2012-06-21 15:25:51 »

Well... Its better than "Check 1", "check 2!", "check2b!"
Offline matheus23

JGO Kernel


Medals: 114
Projects: 3


You think about my Avatar right now!


« Reply #2 - Posted 2012-06-21 15:37:34 »

Nope, unless I'm weird too, well, because I do it too Smiley

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 356
Projects: 3
Exp: 5 years


I'm the King!


« Reply #3 - Posted 2012-06-21 16:29:16 »

I don't watch a lot of movies so I barely know any quotes Sad

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #4 - Posted 2012-06-21 17:27:42 »

haha, I usually print whatever comes to mind, often it is animal noises or obseneties haha.
Offline Rorkien
« Reply #5 - Posted 2012-06-21 17:28:14 »

It depends on my mood. But i am a big fan of caps lock

Sometimes i yell at the code ("WORK DAMMIT")
Sometimes i am too bored to write something so i just smash my body parts against the keyboard ("UHDAKHFBJ")
Sometimes i want to know every value i am working with ("X: " + this.x + " Y: " + this.y + " Vel: " + this.vel + Grandma.cakeRecipe + GPS.myPosition + ...)
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #6 - Posted 2012-06-21 19:07:33 »

My most recent ones:

"I wantz bpi"
"I haz bpi"
"bpi iz: #"
"i can assignz bpi"

Then later in the code is a similar code block where it may have been crashing too, so I put the same text, except I replaced all the z's with s's in order to get some distinction.

Although I often put in "poop" "f**k your face" "thingy1" etc. I find that actually writing a single line to describe what's happening is very helpful in the long run (just in case I end up with 25 different printouts in the process of figuring out the bug), so I've been trying to do that lately.

I used printouts in the above case because it was related to a server call and needed to happen at full speed - breakpoints would cause the bug to not happen.

See my work:
OTC Software
Offline ra4king

JGO Kernel


Medals: 356
Projects: 3
Exp: 5 years


I'm the King!


« Reply #7 - Posted 2012-06-21 19:35:43 »

What's 'bpi'?

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #8 - Posted 2012-06-21 19:37:31 »

What's 'bpi'?
Brain Performance Index.

lumosity.com

See my work:
OTC Software
Offline UprightPath
« Reply #9 - Posted 2012-06-21 19:41:36 »

It depends on my mood. But i am a big fan of caps lock

Sometimes i yell at the code ("WORK DAMMIT")
Sometimes i am too bored to write something so i just smash my body parts against the keyboard ("UHDAKHFBJ")
Sometimes i want to know every value i am working with ("X: " + this.x + " Y: " + this.y + " Vel: " + this.vel + Grandma.cakeRecipe + GPS.myPosition + ...)

I do the last one. All of the time. Otherwise, I use exclamations: "Here!", "How did we get here?" (Typically my default for enum switches), "You hit your head!" (For my physics engine)

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ReBirth
« Reply #10 - Posted 2012-06-22 03:49:29 »

I use only ("oops").

Offline Mads

JGO Ninja


Medals: 26
Projects: 3
Exp: 6 years


One for all!


« Reply #11 - Posted 2012-06-22 03:51:38 »

Exclamations in all-caps letters.

Offline cylab

JGO Ninja


Medals: 55



« Reply #12 - Posted 2012-06-24 12:25:33 »

I may be boring, but i simply use a debugger and conditional breakpoints...

Mathias - I Know What [you] Did Last Summer!
Offline Sickan

Senior Devvie


Medals: 9



« Reply #13 - Posted 2012-06-24 12:49:25 »

I wouldn't know what I would print, because I never get bugs.  Tongue

Joking aside, I usually just write something boring like ("Attention!")
Offline jonjava
« Reply #14 - Posted 2012-06-24 22:57:41 »

1  
System.out.println("This shouldn't happen");

everywhere.

That, or physics formulas.

"F = ma"

"F = c * v x B"

For most purposes the eclipse debugger is a godsend though.

Offline Z-Man
« Reply #15 - Posted 2012-06-25 07:54:35 »

Depends on how lazy I'm feeling Tongue sometimes it's numbers so I know what went wrong where (based on the numbers printed) sometimes it's "WHAT DID YOU DO?!?" or something like that, or I'll just put in debug information for more info i.e. "Look what broke: " + objectThatBroke
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (37 views)
2014-12-15 09:26:44

Mr.CodeIt (31 views)
2014-12-14 19:50:38

BurntPizza (62 views)
2014-12-09 22:41:13

BurntPizza (99 views)
2014-12-08 04:46:31

JscottyBieshaar (60 views)
2014-12-05 12:39:02

SHC (74 views)
2014-12-03 16:27:13

CopyableCougar4 (77 views)
2014-11-29 21:32:03

toopeicgaming1999 (138 views)
2014-11-26 15:22:04

toopeicgaming1999 (127 views)
2014-11-26 15:20:36

toopeicgaming1999 (38 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!