이것은 매우 간단하게 들리지만 작동시키지 못합니다. Windows SDK 7.1을 설치하고 Windows SDK 7.1 명령 프롬프트를 열었습니다. 다음과 같이mdbg를 사용하여 Windows SDK 7.1에서 간단한 C 코드를 디버깅하십시오.
나는, 코드, TEST.C 있습니다
#include <stdio.h>
#include <math.h>
void main()
{
int i;
for(i=1; i<10; i++)
printf("Hello world! This is line %d \n", i);
}
을 그리고 지금 나는 그것을 디버깅 할. 내가 먼저 사용하여 컴파일 :
cl test.c /Z7
을 그리고, 열 : 다음에 무슨 일이 있었는지
mdbg test.exe
은 다음과 같습니다
MDbg (Managed debugger) v4.0.30319.1 (RTMRel.030319-0100) started.
Copyright (C) Microsoft Corporation. All rights reserved.
For information about commands type "help";
to exit program type "quit".
run test.exe
Hello world! This is line 1
Hello world! This is line 2
Hello world! This is line 3
Hello world! This is line 4
Hello world! This is line 5
Hello world! This is line 6
Hello world! This is line 7
Hello world! This is line 8
Hello world! This is line 9
STOP: Process Exited
은 그냥 직접 끝에 실행, 전혀 멈추지 않고. 중단 점을 설정할 기회조차 없습니다 ...
어떻게해야합니까?
정말 고마워요.