📄 consoledebug.cpp
字号:
// ConsoleDebug.cpp : Defines the entry point for the console application.
//
#include "StdAfx.h"
#include "../Common/GlobalVariableDef.h"
#include "../Common/PreInclude.h"
#include "../Common/CometVM.h"
int main(int argc, char* argv[])
{
CCometVM vm;
if (argc <= 1)
{
cerr << "Usage: ConsoleDebug ObjFile" << endl;
return 0;
}
//虚拟机初始化失败的话
if (STATUS_OK != vm.InitVM())
{
cerr << "Comet VM Initilize Failed!" << endl;
return -1;
}
if (STATUS_OK != vm.LoadExeFile(argv[1]))
{
cerr << "Load Object File " << argv[1] << "Failed!" << endl;
vm.ExitVM();
return -1;
}
if (STATUS_OK != vm.ConsoleDebug())
{
cerr << "Debug Failed" << endl;
}
vm.ExitVM();
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -