473,396 Members | 1,914 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,396 software developers and data experts.

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 1519
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****************@TK2MSFTNGP12.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****************@TK2MSFTNGP12.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**************@TK2MSFTNGP09.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
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...
11
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 _________________________________________________________________...
4
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...
25
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...
1
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...
1
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: ...
1
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,...
9
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....
18
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
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...

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.