Forum Discussion

namlu's avatar
namlu
Visitor
7 years ago

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: 
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

  • "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.
  • 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.
  • 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...
  • His point is that with a better telnet Ctrl-C might start to work.
  • Thanks Komag, I'll try one of the other options.

    However, before when I was using Telnet, I had the same issue