473,657 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS.Net debugger?

I'm trying to debug a solution with two projects; a DLL that does some heavy
lifting, and a WinForms app that acts as a front-end GUI for the DLL. I'm
using VS.Net to develop and debug the solution.

I'm debugging the GUI project right now, and the VS.Net debugger works as I
would expect for exceptions thrown in in that project. But the VS.Net
debugger doesn't work for exceptions that occur in the DLL project when it's
called by the GUI, even though the DLL was compiled in debug mode, has a PDB
file, and is part of the same solution as the GUI. Instead, I'm getting a
dialog with a stack dump and language about how to invoke the JIT debugger.
I tried those steps, with no luck.

How come the VS.Net debugger isn't trapping the error? Am I limited to JIT
debugging? If so, is there any reliable source on how to get it working?
I've been through dozens of posts on enabling JIT debugging, but nodbody
seems to be able to get it working properly.

Thanks in advance for your help.

David Veeneman
Foresight Systems
Nov 17 '05 #1
5 1528
apm
David:

Are both projects .NET?

Do you have a reference to the Debug version of the dll (or is your
reference to the Release version)?

David

"David Veeneman" <da****@nospam. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I'm trying to debug a solution with two projects; a DLL that does some
heavy lifting, and a WinForms app that acts as a front-end GUI for the
DLL. I'm using VS.Net to develop and debug the solution.

I'm debugging the GUI project right now, and the VS.Net debugger works as
I would expect for exceptions thrown in in that project. But the VS.Net
debugger doesn't work for exceptions that occur in the DLL project when
it's called by the GUI, even though the DLL was compiled in debug mode,
has a PDB file, and is part of the same solution as the GUI. Instead, I'm
getting a dialog with a stack dump and language about how to invoke the
JIT debugger. I tried those steps, with no luck.

How come the VS.Net debugger isn't trapping the error? Am I limited to JIT
debugging? If so, is there any reliable source on how to get it working?
I've been through dozens of posts on enabling JIT debugging, but nodbody
seems to be able to get it working properly.

Thanks in advance for your help.

David Veeneman
Foresight Systems

Nov 17 '05 #2
> Are both projects .NET?

Both are .NET
Do you have a reference to the Debug version of the dll (or is your
reference to the Release version)?


Checked for that--reference is to the debug version
Nov 17 '05 #3
Hi,

That should not happen, most of the times it's due to incorrect
referencing, do this:
1- Delete the reference to the DLL from the GUI project
2- search the GUI folder for any instance of the DLL and delete it
3- delete the compiled dll frm the dll folder , or even better delete the
BINs and OBJECTSs folders of both projects
4- Compile the dll
5- include the reference in the GUI project
6- Compile the solution

try again.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"David Veeneman" <da****@nospam. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
I'm trying to debug a solution with two projects; a DLL that does some
heavy lifting, and a WinForms app that acts as a front-end GUI for the
DLL. I'm using VS.Net to develop and debug the solution.

I'm debugging the GUI project right now, and the VS.Net debugger works as
I would expect for exceptions thrown in in that project. But the VS.Net
debugger doesn't work for exceptions that occur in the DLL project when
it's called by the GUI, even though the DLL was compiled in debug mode,
has a PDB file, and is part of the same solution as the GUI. Instead, I'm
getting a dialog with a stack dump and language about how to invoke the
JIT debugger. I tried those steps, with no luck.

How come the VS.Net debugger isn't trapping the error? Am I limited to JIT
debugging? If so, is there any reliable source on how to get it working?
I've been through dozens of posts on enabling JIT debugging, but nodbody
seems to be able to get it working properly.

Thanks in advance for your help.

David Veeneman
Foresight Systems

Nov 17 '05 #4
> That should not happen

That's what I thought. I deleted the reference to the DLL in the GUI app,
exited VS.Net. Deleted bin and obj folders from both projects. Restarted
VS.Net, reloaded solution. Verified compile mode was 'Debug'. Compiled DLL.
Verified in Windows Explorer that DLL bin and obj folders contained only
Debug folders.

Went back to VS.Net, set reference to DLL in GUI. Compiled GUI. Launched
GUI, repeated steps to trigger exception--and I got the same dialog again.

Repeated the process, using the 'Project' tab to set GUI reference to DLL,
rather than using the browse button to look up the DLL. Same result.

I created a simple test rig made up of a Winform and a one-line DLL that
simply throws an exception. After verifying that the VS.Net debugger is
invoked by the DLL exception, I compared the sln and cjproj files from the
test rig projects to the projects in my solution. There are no obvious
differences, other than the fact that my solution is under VSS source
control, and the test rig isn't.

Any suggestions of where I might look to troubleshoot this problem? Thanks
Nov 17 '05 #5
Hi,
Well, not really now :)

What if you create a new win app and include your dll , if you can somehow
manage to get the same exception you would know if the problem is in the GUI
or in the DLL project.

Now the thing you are using VSS can introduce more incertaintity. what if
you copy both projects folders to a new location, remove the VSS lock ( RO
flag ) from the files and see what happens when you are not using VSS, I
don';t use it and I dont know what kind of problem it may introduce.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"David Veeneman" <da****@nospam. com> wrote in message
news:eN******** ******@TK2MSFTN GP09.phx.gbl...
That should not happen


That's what I thought. I deleted the reference to the DLL in the GUI app,
exited VS.Net. Deleted bin and obj folders from both projects. Restarted
VS.Net, reloaded solution. Verified compile mode was 'Debug'. Compiled
DLL. Verified in Windows Explorer that DLL bin and obj folders contained
only Debug folders.

Went back to VS.Net, set reference to DLL in GUI. Compiled GUI. Launched
GUI, repeated steps to trigger exception--and I got the same dialog again.

Repeated the process, using the 'Project' tab to set GUI reference to DLL,
rather than using the browse button to look up the DLL. Same result.

I created a simple test rig made up of a Winform and a one-line DLL that
simply throws an exception. After verifying that the VS.Net debugger is
invoked by the DLL exception, I compared the sln and cjproj files from the
test rig projects to the projects in my solution. There are no obvious
differences, other than the fact that my solution is under VSS source
control, and the test rig isn't.

Any suggestions of where I might look to troubleshoot this problem? Thanks

Nov 17 '05 #6

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

Similar topics

6
11113
by: jonathan | last post by:
everyone, I'd like to be able to debug php scripts on the command line, going through the browser. In other words, set up the debugger to listen and then type in a url and have the code stop before displaying stuff to the browser. Then, step through each individual piece of code, etc, whilst having the output mirrored to either another file or the debugger screen...
11
2064
by: Ziaran _ | last post by:
I have written a new debugger. I think people will find it useful. Where can I post it for people to download? Thanks, Nir _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
4
2370
by: Chuck Ritzke | last post by:
Hi, I've been using VS for a number of projects and the debugger has worked as advertised until now. I have a desktop solution with three projects, two of which are class modules. For some reason, in only one of them, the JIT debugger doesn't seem to be working. (At least I asssume this is a JIT debugger issue.) Anyways, in all my other projects an error causes the pop-up window with the break button option that breaks at the line...
25
4295
by: Jeff | last post by:
Use the MS Script Editor included free with MS Office 2002 and above, for debugging Internet Explorer (IE). This subject is of great interest to many JS developers, as there is no obvious, low cost way to do sophisticated debugging in IE6 other than to use the debugger described below, which is horribly documented otherwise. I feel debugging is an important aspect of projecting the useability of the language and needs to be made more...
1
3002
by: Rhino | last post by:
Is there any way to install the IBM Distributed Debugger V9.2 on Windows XP without first uninstalling DB2? I installed the IBM Distributed Debugger V9.2 on my Windows XP box in the hopes of debugging a Java stored procedure. Well, I never got the debugger to work despite my best efforts - see posts earlier this week - so now I'd like to uninstall the debugger. I looked into this but the README says: 3.1 Uninstalling on Windows
1
1854
by: Susanne Christe | last post by:
Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Registeresd JIT debugger is not avaialble: After executing an application I get the Error: Registered JIT debugger is not available..An attempt to launch a jit debugger with the following command resulted in an error code of 0x2(2).please check the computer settings.
1
1635
by: Bill Menees | last post by:
VS.NET 2003 defaults the "Debugger Type" property to "Auto" for Visual C++ projects. Unfortunately, the "Auto" type isn't very smart. "Auto" bases the debugger type on the launched EXE's type, which may have nothing to do with the C++ project I'm trying to debug. I have a .NET EXE that hosts all of my DLLs, but a lot of the DLLs are old, unmanaged C++ COM DLLs. Now everytime I debug one of them, I have to remember to change the...
9
2311
by: RalphTheExpert | last post by:
I'm getting different behavior if my code is running under the debugger or not. I have modified Winmain to look like this: // Copyright (C) 2002 Microsoft Corporation // All rights reserved. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER // EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
18
2957
by: R. Bernstein | last post by:
Okay, a bit of an exaggeration. Recently, I've been using Python more seriously, and in using the debugger I think one of the first things I noticed was that there is no "restart" ("R" in perldb) or "run" (gdb) command. I was pleasantly pleased discover how easy though it was patch pdb.py and pdb.doc; my patch for this is here: http://sourceforge.net/tracker/index.php?func=detail&aid=1393667&group_id=5470&atid=305470
3
2289
by: Doug | last post by:
I'm having problems w/ the VS2005 debugger with C#. It blows past any breakpoints in even the simplest "Hello World" console application. I can't do any step-by-step debugging. I've provided the code and debugging output later in this post. I've seen a number of threads with similar problems that I'll address below. The one that's the largest concern is this one, which talks about the same problem trying to use the debugger with SQL...
0
8395
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...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7330
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
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
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.