How to Acess Console output to check the errors?

Hi Am new to Corona. I am facing a problem while executing the code. how ever I am not able to see the console to see the problem.

Any help will be appreciated.

Thanks.
display.setStatusBar(display.HiddenStatusBar)

local physics = require “physics”
physics.start()
physics.setGravity(0,0)

system.setAccelerometerInterval(100)
–Add menu screen objects
local menuScreeGroup
local mmScreen
local playButton

–Add in game screen objects

local background
local paddle
local brick
local ball
–Add HUD elects for the score and level

local scoreText
local scoreNum
local levelText
local levelNum
– Add alert display group

local alertDisplayGroup
local alertBox
local conditionDisplay
local messageText

–Add Values of the bricks display group

local _W = display.contentWidth/2
local _H = display.contentHeight/2
local bricks = display.newGroup()
local brickWidth = 35
local brickHeight = 35
local row
local column
local score = 0
local scoreIncrease = 100
local currentLevel
local vx = 3
local vy = -3
local gameEvent = “”

–Add touch event

local isSimulator = “simulator” == system.getInfo(“environment”)
function main1()

mainMenu()

end

–[[

function mainMenu()

menuScreenGroup = display.newGroup()
mmScreen = display.newImage(“mmScreen.png”, 0,0, true)
mmScreen.x = _W
mmScreen.y = _H

playButton = display.newImage(“playbtn.png”)
playButton:setReferencePoint(display.CenterReferencePoint)
playButton.x = _W; playButton.y = _H +50
playButton.name = “playbutton”

menuScreenGroup:insert(mmScreen)
menuScreenGroup:insert(playButton)

playButton:addEventListener(“tap”, loadGame)

end
function loadGame(event)

if event.target.name == “play button” then
transition.to(menuScreenGroup,{time = 0, alpha = 0, onComplete = addGameScreen})
playButton:removeEventListener(“tap”, loadGame)
end
end

]]–
main()

[import]uid: 14790 topic_id: 33794 reply_id: 333794[/import]

Howdy, mafia711

You probably just need to open up the Corona Terminal first, which will open a terminal window to see your logs.

You should also see the welcome window pop up, where you can start the simulator and test your project.

As for your code, it looks like you are calling main() but only have a main1() function.

it also looks like you have some comments markers backwards, that might be problematic ‘]]–’ will throw an error, but ‘–[[’ will not

also, check out the forums’ HTML tags, they let you format code so that its easier to read:

local myCode="Clean Lookin'"  

[import]uid: 135765 topic_id: 33794 reply_id: 134341[/import]

Hello r.delia,

Thanks for your kind advice. I was able to resolve my problem.

As for the HTML tags I just checked it out its a neat little feature.

Thanks Again

thanks()  
  
function thanks()  
print("Thanks r.delia.")  
end  

[import]uid: 14790 topic_id: 33794 reply_id: 134396[/import]

Howdy, mafia711

You probably just need to open up the Corona Terminal first, which will open a terminal window to see your logs.

You should also see the welcome window pop up, where you can start the simulator and test your project.

As for your code, it looks like you are calling main() but only have a main1() function.

it also looks like you have some comments markers backwards, that might be problematic ‘]]–’ will throw an error, but ‘–[[’ will not

also, check out the forums’ HTML tags, they let you format code so that its easier to read:

local myCode="Clean Lookin'"  

[import]uid: 135765 topic_id: 33794 reply_id: 134341[/import]

Hello r.delia,

Thanks for your kind advice. I was able to resolve my problem.

As for the HTML tags I just checked it out its a neat little feature.

Thanks Again

thanks()  
  
function thanks()  
print("Thanks r.delia.")  
end  

[import]uid: 14790 topic_id: 33794 reply_id: 134396[/import]

Hello,

I have a similar issue it doesn’t shoe the play button. Same script as yours. Could you send me the fixed scrip

Thank you [import]uid: 213611 topic_id: 33794 reply_id: 140523[/import]

Hello,

I have a similar issue it doesn’t shoe the play button. Same script as yours. Could you send me the fixed scrip

Thank you [import]uid: 213611 topic_id: 33794 reply_id: 140523[/import]