namlu
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2018
05:24 PM
Enter debug mode command
I'm trying to enter debug mode a Roku app built on a MacBook Pro on the Terminal using debug.sh.
On this page, it says:
While my app is running (log messages scrolling in Terminal), when I do crtl-c, it takes me out of the debug state. The only way to enter debug mode (besides resulting from an error) is by putting STOP points throughout the code.
Anyone have insight as to why this isn't working?
https://sdkdocs.roku.com/display/sdkdoc ... pplication
On this page, it says:
When your application is running, simply press ctrl-c to break into the application and enter debug mode. You will see a "BrightScript Debugger>" prompt, where you can type commands.
While my app is running (log messages scrolling in Terminal), when I do crtl-c, it takes me out of the debug state. The only way to enter debug mode (besides resulting from an error) is by putting STOP points throughout the code.
Anyone have insight as to why this isn't working?
https://sdkdocs.roku.com/display/sdkdoc ... pplication
6 REPLIES 6
NB_
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2018
11:25 PM
Re: Enter debug mode command
"namlu" wrote:
I'm trying to enter debug mode a Roku app built on a MacBook Pro on the Terminal using debug.sh.
What is a "debug.sh"? Sounds like some shell script which gets killed by ctrl-C
You are on Mac, so in Terminal type telnet MY-ROKU-IP 8085 and then ctrl-C there.
namlu
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2018
04:14 PM
Re: Enter debug mode command
Hi RokuNB,
Yep, you're right, it's a shell script that does the following:
nc -c MY-ROKU-IP 8085
I used nc (netcat) instead of telnet because it's not provided on Mojave OS.
However, the issue is still that when I use ctrl-c while the logs are begin displayed, it'll kill the process rather than enter debug mode.
Yep, you're right, it's a shell script that does the following:
nc -c MY-ROKU-IP 8085
I used nc (netcat) instead of telnet because it's not provided on Mojave OS.
However, the issue is still that when I use ctrl-c while the logs are begin displayed, it'll kill the process rather than enter debug mode.
NB_
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2018
06:20 PM
Re: Enter debug mode command
They removed telnet from OSX? Ouch.
Try one of these - http://osxdaily.com/2018/07/18/get-telnet-macos/ - i personally would probably just do
Try one of these - http://osxdaily.com/2018/07/18/get-telnet-macos/ - i personally would probably just do
brew install telnet
namlu
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2018
03:56 PM
Re: Enter debug mode command
Thanks RokuNB, but I'm really after a way to go into debug mode while an app is running. Ctrl+c doesn't seem to work...

Komag
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2018
04:07 PM
Re: Enter debug mode command
His point is that with a better telnet Ctrl-C might start to work.
namlu
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2018
09:10 PM
Re: Enter debug mode command
Thanks Komag, I'll try one of the other options.
However, before when I was using Telnet, I had the same issue
However, before when I was using Telnet, I had the same issue