?? 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 + -