473,327 Members | 1,979 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Debuging a dll - How?

Hi,

I have written a test exe that uses a dll (DDL_1 say). This dll, also
calls upon another dll (DLL_2 say). I have the source for both dlls.

I want to be able to run my exe and step through DLL one's code and then
step from there into DLL two's code. I have my project settings as ff:

exe project references DLL_1 proj and DLL_2 project
DLL_1 project references DLL_2 project

Both DLLs have been compiled with Debug information. However, I cannot
step through the code. Is there anything I am missing?. MTIA

Nov 17 '05 #1
3 976


Alfonso Morra wrote:
Hi,

I have written a test exe that uses a dll (DDL_1 say). This dll, also
calls upon another dll (DLL_2 say). I have the source for both dlls.

I want to be able to run my exe and step through DLL one's code and then
step from there into DLL two's code. I have my project settings as ff:

exe project references DLL_1 proj and DLL_2 project
DLL_1 project references DLL_2 project

Both DLLs have been compiled with Debug information. However, I cannot
step through the code. Is there anything I am missing?. MTIA


PS: I am using VC 7.1

Nov 17 '05 #2

Alfonso Morra a écrit :
Hi,

I have written a test exe that uses a dll (DDL_1 say). This dll, also
calls upon another dll (DLL_2 say). I have the source for both dlls.

I want to be able to run my exe and step through DLL one's code and then
step from there into DLL two's code. I have my project settings as ff:

exe project references DLL_1 proj and DLL_2 project
DLL_1 project references DLL_2 project

Both DLLs have been compiled with Debug information. However, I cannot
step through the code. Is there anything I am missing?. MTIA


You should be : check in the "modules" debug window that the DLLs are
loaded and that their symbols have been found. If you copy your DLLS in
another directory for running (where the exe is), you should also copy
the pdb that come with them.

Arnaud
MVP - VC

Nov 17 '05 #3


ad******@club-internet.fr wrote:
Alfonso Morra a écrit :

Hi,

I have written a test exe that uses a dll (DDL_1 say). This dll, also
calls upon another dll (DLL_2 say). I have the source for both dlls.

I want to be able to run my exe and step through DLL one's code and then
step from there into DLL two's code. I have my project settings as ff:

exe project references DLL_1 proj and DLL_2 project
DLL_1 project references DLL_2 project

Both DLLs have been compiled with Debug information. However, I cannot
step through the code. Is there anything I am missing?. MTIA

You should be : check in the "modules" debug window that the DLLs are
loaded and that their symbols have been found. If you copy your DLLS in
another directory for running (where the exe is), you should also copy
the pdb that come with them.

Arnaud
MVP - VC


I found out the problem. I assumed that once the project config had been
changed to Debug, the dub symbols would be generated automatically. I
had to explicitly specify this under the linker options.

Secondly, the way (via the GUI) DLLs are debugged is different from VC6.
I had to navigate a completely different menu structure and GUI to one
that I was familiar with. Nonetheles, I have solved the problem now.

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: mickeyg | last post by:
Is there a way to step thru php application? What tools do I need? I will like to see what lines are being executed and maybe variables values Thanks in advance
0
by: Vincent Finn | last post by:
Hi, I have some controls (VB.Net) written be someone else They are loaded using an asp page How can I debug the contol? I have tried attaching the process to IExplorer and aspnet_wp.exe but...
0
by: serge calderara | last post by:
Dear all, I try to debug a strore procedure within VS studio server explorer. Problem I have is when selecting my store procedure and then Step into menu I get error message that I have no debug...
2
by: joe | last post by:
Hi when iam writing a console program it is preatty simple to ouput variables to stdout, but how do i do that with a windows app? i am compiling a windows app tha uses cp and cpp libs and i am...
3
by: bob | last post by:
Hello, I've tried a few testing frameworks with C# but so far haven't found a way to debug into a failing test. I'm used to S Unit (Smalltalk) where when a test fails you just right click on it...
0
by: FOX User Group | last post by:
Hi, Migh be this is the stupid question, does anyone know the root cause of the following problem: 1. I create project Web Application, say just put label 'Testing" on the page 2. I run the...
1
by: Rogers | last post by:
When I tried to run an application developed by VB.net in IIS6,This error occured,The error message is "Current credit level setting desn't support Debuging"(in chinese),I dont't know how to...
1
by: Carlos Albert | last post by:
Hello group, I have a weird problem with VS2003 & VS2005 using both ASP.NET 1.1 and 2.0, that is that 90% of the times I hit debug, doesn't debug anything, just runs as I was releasing....
3
by: Tina | last post by:
How can I debug with a querystring in vs.net? Is there some place to put the querystring? thanks, T
4
by: psbasha | last post by:
Hi, How to check the class attributes/member variable values while debuging in 'PythonWin'?. I need to watch all the member varibales values of a class ,given the object or etc. Thanks PSB
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.