473,796 Members | 2,537 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

debugging, source files not shown

hi,

I have a testing win2003 machine, where I debug inside a MMC process using a
DebugBreak() statement.

But only the first time, source code was shown, after that, I only get to
see disassembly while I -did- install a debug DLL + PDB and the .CPP's in
the same directory.

I have installed visual studio 2005 without installing any language, so no
C#, or C++, only the IDE.
Native JIT debugging is enabled.

What could be done to fix this?

Thanks!

Jan 24 '06 #1
5 2437
I have a testing win2003 machine, where I debug inside a MMC process using a
DebugBreak() statement.

But only the first time, source code was shown, after that, I only get to
see disassembly while I -did- install a debug DLL + PDB and the .CPP's in
the same directory.


Have symbols been loaded for the DLL?
Has the DLL been loaded from the correct location?

(you can check both these things in Modules window)

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]

Jan 24 '06 #2

"Oleg Starodumov" <com-dot-debuginfo-at-oleg> wrote in message
news:Os******** ******@TK2MSFTN GP14.phx.gbl...
I have a testing win2003 machine, where I debug inside a MMC process
using a
DebugBreak() statement.

But only the first time, source code was shown, after that, I only get to
see disassembly while I -did- install a debug DLL + PDB and the .CPP's
in
the same directory.


Have symbols been loaded for the DLL?
Has the DLL been loaded from the correct location?

(you can check both these things in Modules window)


Привет!

Sure it says that my DLL is loaded + 'symbols loaded'

The PDB also has been loaded since it is locked after debugging started.

Jan 24 '06 #3
Sure it says that my DLL is loaded + 'symbols loaded'

Just to be sure - it says "Symbols loaded" without any other messages
in parentheses?
The PDB also has been loaded since it is locked after debugging started.


In Call Stack window, navigate to a function which should definitely
have sources, and try something of the following:

- In Disassembly window, R-Click + Go to Source Code - will it open
the source file?

- Open the necessary source file manually and see if the debugger picks it up
(R-Click + Go to Source Code might also be tried after this)

- In Tools | Options | Debugging | General, uncheck "Require source files to exactly match
the original version"

- Check two sets of source paths available under Solution properties | Common Properties |
Debug Source Files (one allows to specify additional source directories, other can exclude
some files from source search - sometimes the latter can be responsible for a source file not showing
up in the debugger)

Oleg


Jan 25 '06 #4

"Oleg Starodumov" <com-dot-debuginfo-at-oleg> wrote in message
news:Oi******** *****@TK2MSFTNG P15.phx.gbl...
Sure it says that my DLL is loaded + 'symbols loaded'

Just to be sure - it says "Symbols loaded" without any other messages
in parentheses?
The PDB also has been loaded since it is locked after debugging started.


In Call Stack window, navigate to a function which should definitely
have sources, and try something of the following:

- In Disassembly window, R-Click + Go to Source Code - will it open
the source file?


no it has disabled the menuchoice.

- Open the necessary source file manually and see if the debugger picks it
up
(R-Click + Go to Source Code might also be tried after this)

- In Tools | Options | Debugging | General, uncheck "Require source files
to exactly match
the original version"

- Check two sets of source paths available under Solution properties |
Common Properties |
Debug Source Files (one allows to specify additional source directories,
other can exclude
some files from source search - sometimes the latter can be responsible
for a source file not showing
up in the debugger)


All checked.
unfortunately, no effect.
Thank you very much for your comments.

Jan 28 '06 #5

"Oleg Starodumov" <com-dot-debuginfo-at-oleg> wrote in message
news:Oi******** *****@TK2MSFTNG P15.phx.gbl...
Sure it says that my DLL is loaded + 'symbols loaded'


Just to be sure - it says "Symbols loaded" without any other messages
in parentheses?
The PDB also has been loaded since it is locked after debugging started.


In Call Stack window, navigate to a function which should definitely
have sources, and try something of the following:

- In Disassembly window, R-Click + Go to Source Code - will it open
the source file?

- Open the necessary source file manually and see if the debugger picks it
up
(R-Click + Go to Source Code might also be tried after this)

- In Tools | Options | Debugging | General, uncheck "Require source files
to exactly match
the original version"

- Check two sets of source paths available under Solution properties |
Common Properties |
Debug Source Files (one allows to specify additional source directories,
other can exclude
some files from source search - sometimes the latter can be responsible
for a source file not showing
up in the debugger)


For the ones interested in a solution. I found that compiling with /ZI
instead of /ZI Edit And Continue support solved the issue.

Mar 22 '06 #6

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

Similar topics

1
1512
by: Vishuonline | last post by:
Hi Folks, I have search on search engines for previous dicsussions dealing with this.. but didnt find em any useful... so here I am.. I am having a .NET (BV.NET) application. I am calling a managed dll(C#), which inturn is calling a native dll (c++). OK. Now in the VB.NET application, I also add the project of C3(dll). Now while debugging the VB.NET app, I can step into the source code of c#(dll). But whent he c# code(dll) calls the...
1
4852
by: Scott Chang | last post by:
Hi all, I loaded the following program 'HelloMCPP' to my MS VC++ .NET (2002) that is installed on my Windows XP Professional PC: ------------------------------------- AssemblyInfo.cpp --------------------- #include "stdafx.h" using namespace System::Reflection; using namespace System::Runtime::CompilerServices;
6
1822
by: gerry | last post by:
I am almost at the end of my rope - I have to go through this process everytime a new version of studio is released or it is installed on a new machine - what a (^%&$^& pain. I am trying to debug a web app from within vs.net 2005 locally on windows 2003 server I just cannot get debugging to work anywhere other than localhost I completely uninstalled the ie enhanced security I've been through all of the doc's i can google
0
2063
by: Joseph S. | last post by:
hi all, debugging PHP applications interactively is possible, easy and free. I am talking about PHPEclipse and using it for debugging over several scripts or debugging through a session. Since I have wasted a lot of time writing echo statements all over the code in order to confirm program flow and watch variables, I feel I must share this with others who will be facing similar problems. PHPEclispe users can go to Step 5 directly....
41
3353
by: jacob navia | last post by:
In the C tutorial for lcc-win32, I have a small chapter about a debugging implementation of malloc. Here is the code, and the explanations that go with it. I would appreciate your feedback both about the code and the associated explanations. ---------------------------------------------------------------------
0
2416
by: Tim Bücker | last post by:
Hello everyone, i?ve got a very insistent problem trying to get remote debugging running. Really hope that someone has any ideas about this topic. Although the MSDN and some popular search engines provide a lot of material for this kind of problem they couldn?t solve mine... I am using VS 2005 to create a new webservice and in the same solution I create a new windows application that should consume this webservice, let?s say only...
5
7802
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an app.config file referencing arbitrary versions of the plug-in components they wish to consume. Here's the problem: Assuming I have installed any one of our application software,
0
7338
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the beginning CIS student who is struggling to get their programs working. I work in the computer lab at the college I'm attending and I see many students who don't know how to use the IDE for best results. Visual Studio automatically creates a number of...
2
20855
jwwicks
by: jwwicks | last post by:
C/C++ Programs and Debugging in Linux This tutorial will give you a basic idea how to debug a program in Linux using GDB. As you are aware Visual Studio doesn’t run on Linux so you have to use some of the tools provided on the command-line. If you hate the command line tools, get over it since you’re bound to be using them at some point in your career. All commands in Linux ARE case sensitive so capital letters are different from lowercase...
0
9683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9529
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10457
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10231
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9054
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5443
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2927
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.