Debugger

Can someone please help me. I am just learning Corona and tried to use the debugger but when I set a breakpoint and run the loaded file the game runs until the end of the file and does not stop at the breakpoint.

Here is my code in a main.lua file:

myText = display.newText( "This is a test!", 20, 40, native.systemFont, 36 )  
myText:setTextColor( 255,255,0 )  
  
function doit()  
 print("Testing Testing")  
end  
  
doit()  

In the debugger I load the main.lua file.

I then type in the debugger:

b main.lua 7  

This should insert a breakpoint right before the function doit() is called.

When I run the game the entire script is executed including line 8 which executes doit().

Am I not doing something right?

-J

[import]uid: 10753 topic_id: 3517 reply_id: 303517[/import]

I have a related question. Is line 7 in this case the one right before doit()? When I get errors the line shown to be problematic is usually below the one the terminal says. I’m thinking maybe it doesn’t count spaces and comments? I’m also very new to a debugger and so far it’s been completely useless to me, so I’ve been relying on the terminal for bug fixing.

If the line given by the terminal is not the actual line in the code (which I’m pretty sure is the case), how do I go about finding that line in the code? [import]uid: 10835 topic_id: 3517 reply_id: 10600[/import]

BTW: I have set the breakpoint at line 1 too and it still did not break so I don’t think in my case it is a problem with whitespace. [import]uid: 10753 topic_id: 3517 reply_id: 10601[/import]

Has anyone got the debugger to work or am I just doing something wrong?

I read that in previous versions that there was an issue where the debugger would not stop at a breakpoint. This was supposed to have been resolved. Was this also resolved in the latest Game Edition?

If someone could give me some direction here that would be most helpful.
-J [import]uid: 10753 topic_id: 3517 reply_id: 10727[/import]