Hello,
I would like to know if it is possible to debug a piece of code written in assembly?
If a put a break point in the assembly code, it is ignored.
Tracing the code with F7 or Shift+F7 does not enter in the assembly code.
Here is a simple piece of code if someone want to make a test.
#include <stdio.h>
int A = 5;
int B = 10;
int C = 0;
int main() {
C = A + B;
printf("C : %d\n", C);
C = 0;
__asm (
".intel_syntax noprefix \n"
"mov eax, dword ptr [_A] \n"
"add eax, dword ptr [_B] \n"
"mov dword ptr [_C], EAX \n"
".att_syntax \n"
);
printf("C : %d\n", C);
return 0;
}
So, is there a way to debug assembly code?
Thanks and have a nice day.