extracting variables' values at interrupt

Dear all
I have a question and I really appreciate any help.
I'm trying to extract variable values at interrupt of some program. And I want to do that from JIT.
The situation is that the JIT will interrupt at certain point of executing some code and tries to get the variables' values.
Any help about that?

Regards,
Marwa Yusuf
Teaching Assistant - Computer Engineering Department
Faculty of Engineering - Benha University
E-JUST MSc Student
Computer Science & Engineering Dept.

This is effectively exactly what a debugger does when introspecting the state of a running program. Your JIT’ed code will need to use the program’s debug information to get what it wants.

-Jim

Thanks a million for replying.
I've tried to search about debugger in general and debug in LLVM, but I couldn't find the answer. Could you please suggest where to look for debugging info in LLVM? I\m kind of new to LLVM system.
Besides, I want to get these values in the JIT execution engine itself not in the jitted code.
Thanks again.

Regards,
Marwa Yusuf
Teaching Assistant - Computer Engineering Department
Faculty of Engineering - Benha University
E-JUST MSc Student
Computer Science & Engineering Dept.