Bug fix: closing the file
[codimension.git] / src / debugger / client / protocol_cdm_dbg.py
bloba569aeab2c9c3d1ac71322f958268ac1c84d34e7
2 # -*- coding: utf-8 -*-
4 # codimension - graphics python two-way code editor and analyzer
5 # Copyright (C) 2010 Sergey Satskiy <sergey.satskiy@gmail.com>
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 # $Id$
24 # The file was taken from eric 4 and adopted for codimension.
25 # Original copyright:
26 # Copyright (c) 2002 - 2012 Detlev Offenbach <detlev@die-offenbachs.de>
30 """
31 Module defining the debug protocol tokens.
32 """
34 # The address used for debugger/client communications.
35 DebugAddress = '127.0.0.1'
37 # The protocol "words".
38 RequestOK = '>OK?<'
39 RequestContinue = '>Continue<'
40 RequestStep = '>Step<'
41 RequestStepOver = '>StepOver<'
42 RequestStepOut = '>StepOut<'
43 RequestStepQuit = '>StepQuit<'
44 RequestBreak = '>Break<'
45 RequestBreakEnable = '>EnableBreak<'
46 RequestBreakIgnore = '>IgnoreBreak<'
47 RequestWatch = '>Watch<'
48 RequestWatchEnable = '>EnableWatch<'
49 RequestWatchIgnore = '>IgnoreWatch<'
50 RequestVariables = '>Variables<'
51 RequestVariable = '>Variable<'
52 RequestThreadList = '>ThreadList<'
53 RequestThreadSet = '>ThreadSet<'
54 RequestEval = '>Eval<'
55 RequestExec = '>Exec<'
56 RequestShutdown = '>Shutdown<'
57 RequestForkTo = '>ForkTo<'
58 RequestStack = '>CurrentStack<'
59 RequestExit = '>Exit<'
61 ResponseOK = '>OK<'
62 ResponseContinue = '>Continue<'
63 ResponseException = '>Exception<'
64 ResponseSyntax = '>SyntaxError<'
65 ResponseExit = '>Exit<'
66 ResponseLine = '>Line<'
67 ResponseRaw = '>Raw<'
68 ResponseClearBreak = '>ClearBreak<'
69 ResponseBPConditionError = '>BPConditionError<'
70 ResponseClearWatch = '>ClearWatch<'
71 ResponseWPConditionError = '>WPConditionError<'
72 ResponseVariables = RequestVariables
73 ResponseVariable = RequestVariable
74 ResponseThreadList = RequestThreadList
75 ResponseThreadSet = RequestThreadSet
76 ResponseStack = RequestStack
77 ResponseForkTo = RequestForkTo
78 ResponseEval = RequestEval
79 ResponseEvalOK = '>EvalOK<'
80 ResponseEvalError = '>EvalError<'
81 ResponseExec = RequestExec
82 ResponseExecOK = '>ExecOK<'
83 ResponseExecError = '>ExecError<'
84 ResponseStdout = '>StdOut<'
85 ResponseStderr = '>StdErr<'
86 ResponseProcID = '>ProcID<'
88 PassiveStartup = '>PassiveStartup<'
90 EOT = '>EOT<'
91 StdoutStderrEOT = '\x04\x04'