Click here to Skip to main content
15,886,362 members
Articles / Desktop Programming / MFC

A Java Language IDE

Rate me:
Please Sign up or sign in to vote.
4.33/5 (26 votes)
13 May 2004CPOL3 min read 80.4K   3.4K   41  
This is a partially implemented IDE for the Java platform.
// DebugInterface.h: interface for the CDebugInterface class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DEBUGINTERFACE_H__C819224A_0C36_4F23_8D19_79BA6A277D4F__INCLUDED_)
#define AFX_DEBUGINTERFACE_H__C819224A_0C36_4F23_8D19_79BA6A277D4F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "jvmdi.h"

#define DEBUG_MSG_SINGLESTEP         0
#define DEBUG_MSG_BREAKPOINT         1
#define DEBUG_MSG_FRAMPOP            2
#define DEBUG_MSG_EXCEPTION          3
#define DEBUG_MSG_USERDEFINED        4
#define DEBUG_MSG_THREADSTART        5
#define DEBUG_MSG_THREADEND          6
#define DEBUG_MSG_PREPARECLASS       7
#define DEBUG_MSG_LOADCLASS          8
#define DEBUG_MSG_UNLOADCLASS        9
#define DEBUG_MSG_FIELDACCESS        10
#define DEBUG_MSG_FIELDMODIFICATION  11
#define DEBUG_MSG_CATCHEXCEPTION     12
#define DEBUG_MSG_METHODENTRY        13
#define DEBUG_MSG_METHODEXIT         14
#define DEBUG_MSG_VMINIT             15
#define DEBUG_MSG_VMDEATH            16


extern void OnSingleStep(JNIEnv *env);
extern void OnBreakPoint(JNIEnv *env);
extern void OnFramePop(JNIEnv *env);
extern void OnException(JNIEnv *env);
extern void OnUserDefined(JNIEnv *env);
extern void OnThreadStart(JNIEnv *env);
extern void OnThreadEnd(JNIEnv *env);
extern void OnPrepareClass(JNIEnv *env);
extern void OnLoadClass(JNIEnv *env);
extern void OnUnLoadClass(JNIEnv *env);
extern void OnFieldAccess(JNIEnv *env);
extern void OnFieldModification(JNIEnv *env);
extern void OnCatchException(JNIEnv *env);
extern void OnMethodEntry(JNIEnv *env);
extern void OnMethodExit(JNIEnv *env);
extern void OnVMinit(JNIEnv *env);
extern void OnVMdeath(JNIEnv *env);
extern void DebugMsgProc(int nMsg,void*);
extern void InitDebuger();
extern void ReadMemMapFile(LPTSTR &lpText);
extern void WriteToMemMapFile(LPTSTR lpText);

// memory mapping file common for all instances:
extern HANDLE m_hFileMapping;      // memory mapped file
extern LPVOID m_pViewOfFile;       // view of file, contains text in edit box
extern BOOL   m_bNotify;           // OnChangeEditBox works only if m_bNotify is TRUE




//extern void SingleStep();
extern void BreakPoint(int nLineIndex);
/**
extern void FramePop();
extern void Exception();
extern void UserDefined();
extern void ThreadStart();
extern void ThreadEnd();
extern void PrepareClass();
extern void LoadClass();
extern void UnLoadClass();
extern void FieldAccess();
extern void FieldModification();
extern void CatchException();
extern void MethodEntry();
extern void MethodExit();
**/

#endif // !defined(AFX_DEBUGINTERFACE_H__C819224A_0C36_4F23_8D19_79BA6A277D4F__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
biography? I am not that old yet.

Comments and Discussions