KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > scripting > php > dbginterface > DbgConstants


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.scripting.php.dbginterface;
21
22 /**
23  *
24  * @author marcow
25  * The constants from dbg-cli/dbgbase/dbg_net.h
26  */

27 public class DbgConstants {
28     // version
29
public static final int DBG_API_MAJOR_VESION = 0x02;
30     public static final int DBG_API_MINOR_VESION = 0x15;
31     public static final int DBG_API_RELEASE_STAGE = 0x03; // 0-dev, 1-beta, 2-prerelease, 3-release
32
public static final int DBG_API_MINOR_SUB_VESION = 0x01;
33
34     public static final String JavaDoc DBG_PROD_NAME = "DBG php debugger"; // NOI18N
35
public static final String JavaDoc DBG_PROD_COPYR = "Copyright 2001, 2006, Dmitri Dmitrienko, www.nusphere.com"; // NOI18N
36
public static final String JavaDoc DBG_API_DESCRIPTION = DBG_PROD_NAME + ", version " + // NOI18N
37
DBG_API_MAJOR_VESION + "." + DBG_API_MINOR_VESION + "." + // NOI18N
38
DBG_API_MINOR_SUB_VESION + " " + DBG_PROD_COPYR; // NOI18N
39
public static final int DBG_DEFAULT_PORT = 7869;
40     public static final String JavaDoc DBG_SESSION_VAR = "DBGSESSID";
41     public static final int DBG_SYNC = 0x00005953;
42
43     // session type
44
public static final int DBG_SESSION_COMPAT = 0x0001;
45     public static final int DBG_SESSION_JIT = 0x0002;
46     public static final int DBG_SESSION_REQ = 0x0003;
47     public static final int DBG_SESSION_EMB = 0x0004;
48
49     // C O M M A N D I N T E R F A C E
50
// debugger_flags
51
// state:
52
public static final int DBGF_STARTED = 0x0001; // debugger has been started
53
public static final int DBGF_FINISHED = 0x0002; // DBGC_END notification has been sent
54
public static final int DBGF_WAITACK = 0x0004; // awaiting replay|request
55
public static final int DBGF_UNSYNC = 0x0008; // protocol has been unsynchronized
56
public static final int DBGF_REQUESTPENDING = 0x0010; // Debug session request pending
57
public static final int DBGF_REQUESTFOUND = 0x0020; // Debug session request found
58
public static final int DBGF_REJECTIONFOUND = 0x0040; // DBGSESSID=-1 found - session rejection
59

60     // execution:
61
public static final int DBGF_STEPINTO = 0x0100; // break on next script instruction
62
public static final int DBGF_STEPOVER = 0x0200; // break on next script instruction on the same context
63
public static final int DBGF_STEPOUT = 0x0400; // break on next script instruction on the outer context
64
public static final int DBGF_ABORT = 0x0800; // stop instruction passed
65

66     // PHP ENGINE to DEBUGGER CLIENT WAY:
67
// php-engine commands/events
68
public static final int DBGC_REPLY = 0x0000; // reply to previous DBGA_REQUEST request
69
public static final int DBGC_STARTUP = 0x0001; // script startup
70
public static final int DBGC_END = 0x0002; // script done
71
public static final int DBGC_BREAKPOINT = 0x0003; // user definded breakpoint occured
72
public static final int DBGC_STEPINTO_DONE = 0x0004; // step to the next statement is completed
73
public static final int DBGC_STEPOVER_DONE = 0x0005; // step to the next statement is completed
74
public static final int DBGC_STEPOUT_DONE = 0x0006; // step to the next statement is completed
75
public static final int DBGC_EMBEDDED_BREAK = 0x0007; // breakpoint caused by DebugBreak() function
76
public static final int DBGC_ERROR = 0x0010; // error occured
77
public static final int DBGC_LOG = 0x0011; // logging support
78
public static final int DBGC_SID = 0x0012; // send SID
79
public static final int DBGC_PAUSE = 0x0013; // pause current session as soon as possible
80

81     public static final int FRAME_STACK = 100000; // "call:stack" - e.g. backtrace
82
public static final int FRAME_SOURCE = 100100; // source text
83
public static final int FRAME_SRC_TREE = 100200; // tree of source files
84
public static final int FRAME_RAWDATA = 100300; // raw data or string
85
public static final int FRAME_ERROR = 100400; // error notification
86
public static final int FRAME_EVAL = 100500; // evaluating/watching
87
public static final int FRAME_BPS = 100600; // set/remove breakpoint
88
public static final int FRAME_BPL = 100700; // breakpoint(s) request = get the list
89
public static final int FRAME_VER = 100800; // version request
90
public static final int FRAME_SID = 100900; // session id info
91
public static final int FRAME_SRCLINESINFO = 101000; // source lines info
92
public static final int FRAME_SRCCTXINFO = 101100; // source contexts info
93
public static final int FRAME_LOG = 101200; // logging
94
public static final int FRAME_PROF = 101300; // profiler
95
public static final int FRAME_PROF_C = 101400; // profiler counter/accuracy
96
public static final int FRAME_SET_OPT = 101500; // set/update options
97

98     // DEBUGGER CLIENT to DBG SERVER WAY:
99
// debugger client makes acknowledgement
100
public static final int DBGA_CONTINUE = 0x8001; // php should continue run
101
public static final int DBGA_STOP = 0x8002;
102     public static final int DBGA_STEPINTO = 0x8003;
103     public static final int DBGA_STEPOVER = 0x8004;
104     public static final int DBGA_STEPOUT = 0x8005;
105     public static final int DBGA_IGNORE = 0x8006;
106     public static final int DBGA_REQUEST = 0x8010; // debugger client requests some information from PHP engine
107

108     public static final int BPS_DELETED = 0;
109     public static final int BPS_DISABLED = 1;
110     public static final int BPS_ENABLED = 2;
111     public static final int BPS_UNRESOLVED = 0x0100;
112     
113     // FRAME_ERROR types
114
public static final int ERR_ERROR = 0x01;
115     public static final int ERR_WARNING = 0x02;
116     public static final int ERR_PARSE = 0x04;
117     public static final int ERR_NOTICE = 0x08;
118     public static final int ERR_CORE_ERROR = 0x10;
119     public static final int ERR_CORE_WARNING = 0x20;
120 }
121
Popular Tags