How VC++ debugger works? 
Author Message
 How VC++ debugger works?

Hi

There is a debug dll "try.dll". This dll has a executable "testtry.exe" for
its debug session.

Now when i try to run the dll (using F5), there are three components:

1)try.dll (with debug info)
2)testry.exe
3)VC++ de{*filter*} exe

1)How does these three work together to achieve the debugging?
2)How does 2 and 3 communicate with each other?
3)What role does 3 plays in debugging?

thanks,
regards,
Naresh Agarwal



Fri, 27 May 2005 19:18:01 GMT  
 How VC++ debugger works?
Hi Naresh,

Basically, VC de{*filter*} debugs the process, and the process loads the DLL
into memory. Then, it invokes the debugging services provided by the system
to load the symbol and debug the process. You can check the article below
for more information how a de{*filter*} works:

http://www.*-*-*.com/

Note: The URL may wrap. In addition, this article is quite old, some APIs
may change in the dbghelp.dll.

For detailed information, please check MSDN:

http://www.*-*-*.com/
ing.asp

From very low level view, the system may insert "int 3" to stop the
process' execution. As the de{*filter*} has knowledge of the process' data
structure, it can interpret the memory and provides application specific
information (such as .NET assembly, etc) to the user.

Best Regards,
Leo Chen

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

| Subject: How VC++ de{*filter*} works?
| Date: Mon, 9 Dec 2002 16:48:01 +0530
| Lines: 21
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

| Newsgroups: microsoft.public.vc.de{*filter*}
| NNTP-Posting-Host: ptil-237-132-del.primus-india.net 203.196.132.237
| Path: cpmsftngxa06!tkmsftngp01!tkmsftngp02
| Xref: cpmsftngxa06 microsoft.public.vc.de{*filter*}:14721
| X-Tomcat-NG: microsoft.public.vc.de{*filter*}
|
| Hi
|
| There is a debug dll "try.dll". This dll has a executable "testtry.exe"
for
| its debug session.
|
| Now when i try to run the dll (using F5), there are three components:
|
| 1)try.dll (with debug info)
| 2)testry.exe
| 3)VC++ de{*filter*} exe
|
| 1)How does these three work together to achieve the debugging?
| 2)How does 2 and 3 communicate with each other?
| 3)What role does 3 plays in debugging?
|
| thanks,
| regards,
| Naresh Agarwal
|
|
|
|



Sat, 28 May 2005 21:26:34 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How VC++ debugger works?

2. NT VC++ Debugger won't work

3. VC DEBUGGER doesn't seem to work with IE 4.0 on Win95

4. VC++ Debugger not working

5. VC DEBUGGER doesn't seem to work with IE 4.0 on Win95

6. VC DEBUGGER doesn't seem to work with IE 4.0 on Win95

7. VC DEBUGGER doesn't seem to work with IE 4.0 on Win95

8. Embedded VC++ 4.0 Debugger not working properly

9. question about microsoft's vc++ debugger

10. tutorial about using the vc++ debugger

11. Disabling the VC debugger in VC 6.0

12. vc++ 5.0 debugger problems, any solutions yet?

 

 
Powered by phpBB® Forum Software