
dreamer2057
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2016
08:50 AM
Eclipse Debug Console
Hello! Cannot understand, why print function works strange in Eclipse Debug Console.
I have main.brs:
Also I have Scene:
and it's code GuideScene.brs:
When I start application i see only main.brs log:
print "in showChannelSGScreen" - prints
print "23" - didn't prints
I have main.brs:
sub Main()
showChannelSGScreen()
end sub
sub showChannelSGScreen()
print "in showChannelSGScreen"
screen = CreateObject("roSGScreen")
m.port = CreateObject("roMessagePort")
screen.setMessagePort(m.port)
scene = screen.CreateScene("GuideScene")
screen.show()
while(true)
msg = wait(0, m.port)
msgType = type(msg)
print "Event"
if msgType = "roSGScreenEvent"
if msg.isScreenClosed() then return
end if
end while
end sub
Also I have Scene:
<?xml version="1.0" encoding="utf-8" ?>
<!--********** Copyright 2015 Roku Corp. All Rights Reserved. **********-->
<component name="GuideScene" extends="Scene" >
<script type="text/brightscript" uri="pkg:/components/GuideScene.brs" />
<children>
<MenuBar id="menuBar" />
<Label
id="myLabel"
visible="true"
height="60"
width="0"
text = "Press OK to Hide"
horizAlign = "left"
vertAlign = "center"
translation="[250,100]" />
</children>
</component>
and it's code GuideScene.brs:
sub init()
print "23"
end sub
When I start application i see only main.brs log:
print "in showChannelSGScreen" - prints
print "23" - didn't prints

Sincerely, Sergey Shoshin, software developer.
2 REPLIES 2

NewManLiving
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2016
09:32 AM
Re: Eclipse Debug Console
Scene Graph runs on a different thread. You can open a telnet and pin it right next to the debug. Set the telnet to your ip and the scene graph port
My Channels: 2D API Framework Presentation: https://owner.roku.com/add/2M9LCVC
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )

dreamer2057
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2016
10:27 AM
Re: Eclipse Debug Console
Yes, telnet with 8089 port works.
ports:
https://sdkdocs.roku.com/display/sdkdoc ... plications
ports:
https://sdkdocs.roku.com/display/sdkdoc ... plications
Sincerely, Sergey Shoshin, software developer.