Module: DebugServer

Defined in:
lib/debugserver.rb,
lib/debugserver/common.rb,
lib/debugserver/parser.rb,
lib/debugserver/server.rb,
lib/debugserver/console.rb,
lib/debugserver/session.rb

Defined Under Namespace

Modules: Console, Parser Classes: Server, Session

Constant Summary collapse

METHOD_CLEAR =
1
METHOD_MESSAGE =
2
METHOD_DUMP =
3
LEVEL_NONE =
0
LEVEL_INFO =
1
LEVEL_WARNING =
2
LEVEL_ERROR =
3
COLORS =
{
  LEVEL_INFO => :green,
  LEVEL_WARNING => :yellow,
  LEVEL_ERROR => :red
}
@@config =
{}

Class Method Summary collapse

Class Method Details

.configObject



24
25
26
# File 'lib/debugserver/common.rb', line 24

def self.config
  @@config
end

.configure(host = 'localhost', port = 9000) ⇒ Object



19
20
21
22
# File 'lib/debugserver/common.rb', line 19

def self.configure(host='localhost', port=9000)
  @@config[:host] = host
  @@config[:port] = port
end

.startObject

start server



3
4
5
6
# File 'lib/debugserver/server.rb', line 3

def self.start
  server = DebugServer::Server.new
  server.start
end