Mixing user input with RTS debugger input

Category |  Purpose |  Intended Audience |  Applicable to |  Description |  Limitations |  See also


Category:

Top

Micro-RTS


Purpose:

Top

How to allow user input to be mixed with RTS debugger input


Intended Audience:

Top

Those using MicroRTS


Applicable to:

Top

All Versions


Description:

Top

Ways of using uRTS debugger in RTOS where debugger input may conflict with application's input:

  1. Map the debuggers input invocations from stdin to a pipe or socket, where the socket or pipe is connected internally or externally (network). Therefore there would be not conflict/contention with application input using stdin.
     
  2. Change the MicroRTS start up code to not start the debug task. When appropriate within the application call debugger->debugIt(). This will put the prompt up, accept one command entry, process the command, then return.
     
  3. To start the debugger and keep it active, but not attach to any task -- set URTS_DEBUG to 0 (or debugLevel=0). If a debug level of greater than 0 is desired, but not have the debugger attached to any tasks, then change OTRTSDebug::registerRTS to not attach to any tasks if the debug level is greater than zero.

Limitations:

Top

None


See also:

Top

None


 

Copyright © 1999, ObjecTime Limited.