<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On Windows, if you get a scenario to work by copying dll files to
another location, you will be able to debug into those dlls if you also
copy the corresponding pdb files with them. Microsoft's debugger (and
presumably others) always look in the same directory for a matching pdb
when loading a dll.<br>
<br>
HTH,<br>
David<br>
<br>
vidyadhar wrote:
<blockquote cite="mid004001c543cb$825dbad0$2d01a8c0@pf244" type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2800.1106" name="GENERATOR">
  <style></style>
  <div><font face="Arial" size="2">Hi Tom,</font></div>
  <div><font face="Arial" size="2">Thanks for the hint. What worked for
me is as follows.</font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2">I created the VTK projects and
solution for VC++ 7 using CMake and build the solution with DEBUG
information. This places references to debug database files in each
DLL. Copied these DLLs into the VTK binaries folder which is on
Windows' search path so that runtime loads these DLLs. Created a
project for application which uses VTK. In this solution, there is no
need to add the VTK projects created by CMake. Developed my application
as usual. As such if I run this in IDE, I cannot step into the VTK
code. To be able to do so needs telling the debugger where to find
debug information (as you indicated). In project properties, select
'Debugging' page. Under 'Action' there is an entry for 'Symbol Path'.
Here one can give comma delimited list of folders where debugger should
search for additional symbol files. I added reference to the folder
(bin\debug where the VTK CMake solution is built). Once I do this, I am
able to step into the VTK code.</font></div>
  <div><font face="Arial" size="2">Hope this will be useful for others
too.</font></div>
  <div><font face="Arial" size="2">Vidyadhar</font></div>
  <div>&nbsp;</div>
  <div>----- Original Message ----- </div>
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"
 dir="ltr">
    <div
 style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
    <a title="tefinegan@yahoo.com" href="mailto:tefinegan@yahoo.com">Tom
Finegan</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
    <a title="vtkusers@vtk.org" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>
    </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Saturday, April 16, 2005 10:54 AM</div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
Re: [vtkusers] Debuggin VTK code</div>
    <div><br>
    </div>
You need to put the path to the various VTK source directories. This is
done in the visual studio tools/options dialog, under "environment" or
something like that. Make sure the directory for "source files" points
to the vtk source directories. My windows machine isn't booted, so I'm
going on memory here, but the basic concept is correct.<br>
    <br>
On Apr 15, 2005, at 9:48 PM, vidyadhar wrote:<br>
    <br>
    <blockquote>Hi,<br>
I am using VTK 4.2 with VC++ 6.0 and 7.0 on MS Windows platform. For
this purpose, I have installed the binaries (dll). I am able to build
my applications this way.<br>
Now I wish to understand the internal workings of VTK. I have the VTK
source code. Using CMake, I succeeded in creating required projects
etc. (I can do this for both versions of my compiler). So I can create
Debug version of VTK binaries. I am unable to figure out how to setup
my application project/solution so as to be able to trace/step into the
VTK code in dlls.<br>
If somebody can give me directions on how to do this for a simple
application (say console application) I will be very grateful.<br>
Thanks in advance.<br>
Vidyadhar<br>
_______________________________________________<br>
This is the private VTK discussion list. <br>
Please keep messages on-topic. Check the FAQ at:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
    </blockquote>
  </blockquote>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
  </pre>
</blockquote>
</body>
</html>