Help on debugging...

Hi Everyone…

I just wanted to see if someone can give me some advices for debugging…

I am testing my app in my real iPad

it works fine, no errors or mistakes

but while I am playing, in one scene (let’s say sceneA.lua)

for some reason I see an image of a background

that has nothing to do with the scene, it shows all of a sudden…

in coordinates 0, 0, and onFront … like only 1 quarter of the backgrond on the top left corner

I replay that level(scene) and I can not make it show again…???


then another day in another in another different level (let’s say sceneB.lua)

For some reason I see the same image AGAIN!

in the same place

I try to reproduce the error, I play the game ten 20 times and I don’t see the image


I went to those 2 particular files, and I don’t even see that image in my code

weird…strange…

So what advices can you give me…

Thanks for your time

Victor

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

You need to look at the console log and see what errors you’re getting.   That is likely you loading an image but there is an error after it before you go to position it (ergo it’s at 0,0).

Rob

Most likely thing is case issues. Corona sim and real hardware handle case equivalence differently, I think, so I just have all files as l/c everything, alphanumerics only.

Hi paulscottrobson… could you be more explicit please…

like instead of

buttonRed.png or hero.png

I should use

1a.png, 1b.png and so on?

And Rob…

I get no errors in the console, the app works fine

I just saw that image only 2 times

And I can not re-produce the same error so I can see the image all the time

but the app works fine with no errors

it’s weird

I mean use buttonred.png rather than buttonRed.png :slight_smile:

Thanks that’s a great advice I will start doing that.

I have been doing apps for 1 year and 9 months

I wish I would have known that from the beginning…

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

You need to look at the console log and see what errors you’re getting.   That is likely you loading an image but there is an error after it before you go to position it (ergo it’s at 0,0).

Rob

Most likely thing is case issues. Corona sim and real hardware handle case equivalence differently, I think, so I just have all files as l/c everything, alphanumerics only.

Hi paulscottrobson… could you be more explicit please…

like instead of

buttonRed.png or hero.png

I should use

1a.png, 1b.png and so on?

And Rob…

I get no errors in the console, the app works fine

I just saw that image only 2 times

And I can not re-produce the same error so I can see the image all the time

but the app works fine with no errors

it’s weird

I mean use buttonred.png rather than buttonRed.png :slight_smile:

Thanks that’s a great advice I will start doing that.

I have been doing apps for 1 year and 9 months

I wish I would have known that from the beginning…