Question

Visual Studio Error - Can't set breakpoints in Debugger

Asked by: DBaileyFoxGal

I have a workflow defined in Visual Studio and it resides on both a development server and a production server.  The workflow runs fine on the development but gives me a error in the production server.  I'm certian the workflow is fine since it runs on the first server.  So I decided to run it in debugger in order to find some idea as to where the "smoking gun" resides on the production server.

When I bring up Visual Studio, attch the process id and sttempt to set the firsty breakpoint, I expect to see a solid dot to the left of the selected line.  Instead, I see a clear dot and the following message : THE BREAKPOINT WILL NOT CURRENTLY BE HIT.  NO SYMBOLS HAVE BEEN LOADED FOR THIS DOCUMENT.  (I have attached a screen print in a WORD document to this description.

How and where do resolve this?  What symbol table is it expecting to find?

I appreciate any help and leads you can provide.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. problems with debugging in Visual Studio .NET/ debugger…
    I created a Web Form with Visual Studio .NET. At first, after I set a breakpoint and started debugging, everything works fine and the application stopped at the breakpoint. After I have closed the application and started again one day later, the debugger doesn't stop at any b...
  2. Debugger not stopping on breakpoints.
    Yesterday, I was debugging an activeForm, Using IE as the host application. Everything was working fine. Execution would stop wherever I set a break point. Today, when I set breakpoints in the same places in the code, it does not stop. The debugger is working somewhat: It...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: TheLearnedOnePosted on 2008-02-20 at 12:09:37ID: 20941348

Are you running in the Debug or Release configuration?

Bob

 

by: DBaileyFoxGalPosted on 2008-02-20 at 12:24:40ID: 20941496

I think I am in the Debug configuartion - to be exact, this is the first time I have attempted a debug on our production server.  Normally, after we publish to the Production server, everything runs properly.

How can I verify that answer?

 

by: TheLearnedOnePosted on 2008-02-20 at 12:34:29ID: 20941622

1) What version of the .NET framework are you working with?

2) What type of application is this?

Bob

 

by: DBaileyFoxGalPosted on 2008-02-20 at 13:02:50ID: 20941928

It is a Workflow Application written in VB using Visual Studio ver 8.0.50727.762  SP.0505727-7600.
We are running .NET ver 2.0.50727 SP1.

 

by: TheLearnedOnePosted on 2008-02-20 at 13:04:34ID: 20941946

Workflow = Windows Forms application?
    or
Workflow = Web site?

Bob

 

by: DBaileyFoxGalPosted on 2008-02-20 at 13:10:22ID: 20942004

I'm sorry - I get your question now - it is a web site workflow application running on a Sharepoint site through our IE browsers.

 

by: TheLearnedOnePosted on 2008-02-20 at 13:16:22ID: 20942054

Ok, now with that hashed out, what type of web site?  Web Site model (no project file), Web Application model (project file)?  Pre-compiled code with DLLs for the page code-behind?

Bob

 

by: DBaileyFoxGalPosted on 2008-02-20 at 13:27:30ID: 20942138

The solutuion has only one project defined to it and when built, it does generate a .dll file that is stored beneath the bin folder.

 

by: TheLearnedOnePosted on 2008-02-20 at 13:47:45ID: 20942324

Now, to the meat of the question barrage:

    Is there a .pdb file in that directory, with the same name as the .dll?

Bob

 

by: DBaileyFoxGalPosted on 2008-02-20 at 13:51:45ID: 20942356


...and a fine question it is too!

Yes - there is - same name and the type shows to be a Program Debug Database...

 

by: TheLearnedOnePosted on 2008-02-20 at 14:00:29ID: 20942441

And, then we have, "What processing are you attaching to?"

Bob

 

by: DBaileyFoxGalPosted on 2008-02-20 at 14:13:33ID: 20942585

Okay - let me answer your question this way and hopefully, I will give you what you are looking for.

I go to Debug, select Attach to Process amd hunt down the w3wp.exe processes.  There are usually three there to choose from.  I select the one with type "Workflow, T-SQL, Managed, x64".  This particular process also has the most memory use when viewed in the Task Manager.

The other two w3wp.exe process are of the types "Script, T-SQL, Managed, x64" and simply "T-SQL, Managed, x64".

 

by: DBaileyFoxGalPosted on 2008-02-20 at 14:57:26ID: 20942933


Don't know if this means anything...

But i went back in to test again and the process I described is now grayed out and I'm not allowed to select it.  The other two w3wp processes are still available - only the one I was using is unavailable for use now.

 

by: TheLearnedOnePosted on 2008-02-20 at 16:54:34ID: 20943950

There resources available to show how to debug remote applications:

Remote Debugging in Visual Studio .Net
http://parthasarathi.netfirms.com/tutorials/Remote%20Debugging%20in%20VS%20Net.html

Bob

 

by: DBaileyFoxGalPosted on 2008-02-21 at 13:34:21ID: 20952084

For a while, I thought we were really on to something here.

As the site you referenced recommended, I checked the production server and the Machine Debug Manager (MDM) was not installed.  We installed it (it lists in the Services page as "Visual Basic Remote Debugger").  Then I attempted another debug session and I got the following error at the time I tried to attach the process:
R6034
An application has made an attempt to load the C runtime library incorrectly.  Please contact the application's support team for more information.

I looked up that error and it suggested that I rebuild my application with a manifest.  The required information would then be passed on into the .dll file.  Since the .dll was imported directly from our development server (where debugging works fine), I double-checked that server as well.  The MDM was not installed there either.  That seemed to imply it wasn't needed for us.

Just to verify, we installed it on the test server and it made no difference there - debugging continued as normal.

So I went back to the production server and stopped the MDM and restarted it.  I even took the extra step of re-installing my application again with this new Network Service running.  Same results (the R6034 error).  As one other attempt, I stopped the MDM and tried to attach the process and this time it worked, but I still get the original problem where I see the clear dot next to the breakpoint and the message, "THE BREAKPOINT WILL NOT CURRENTLY BE HIT.  NO SYMBOLS HAVE BEEN LOADED FOR THIS DOCUMENT" (just as you see in the original attached WORD doc).

Whew...

 

by: DBaileyFoxGalPosted on 2008-02-21 at 15:54:05ID: 20953309

Okay - now I am getting the clear circle and error message on the development server as well.  My earlier test there may have been invalid, I don't know.  I did rebuild and install the application there but when that was done in the sequence of events I can't clearly define.

Let's just say that the installation of MDM failed to do the trick.

Any other thoughts on this one?

 

by: DBaileyFoxGalPosted on 2008-02-26 at 11:52:23ID: 20988031


This may be a clue as to what is happening...

As I stated in my post (2/20 at 4:13 PM), I select the process to attach as the one that uses the most memory in the Task Manager and that one generally has a type of "Workflow, T-SQL, Managed, x64".  Now this process no longer says "Workflow" as part of it's type, simply "T-SQL, Managed, x64".

In the "Attach to:" selection box in the "Process to Attach" option, I have asked to attach to Workflow Code, so I am GUESSING that this may be a "piece of the puzzle" as to why the breakpoints aere not being recognized.

Thoughts?

 

by: TheLearnedOnePosted on 2008-03-04 at 09:53:03ID: 21043199

If you are attaching to the correct process, the process is set up to be debugged, and you have msvsmon.exe running, then you should be able to debug.  Beyond that point, I am not sure where it is broken down.

Bob

 

by: DBaileyFoxGalPosted on 2008-03-21 at 15:13:35ID: 21183629

First off, I apologize for not posting in such a long time.  

I broke down and called Microsoft on this and they have done a lot if investigation but have not come up with an answer yet.  the path they have been going down involves the fact that our development system is a 32-bit machine and our production system system is a 64-bit machine.  They installed some 64-bit debuggers and have been installing other system files as well.

Now it is a mut point because of other "quirky" errors we are getting in the application, we have decided to re-deploy our application on a 32-bit server instead.  There have just been too many problems (besides this debugging issue) that we can't resolve.  We feel this is our best option.

That probably makes this debugging issue a dead issue since we are debugging fine on our 32-bit system.

I appreciate your help and interest on this problem.

 

by: DBaileyFoxGalPosted on 2008-04-22 at 15:45:01ID: 21416264

I appreciate your input.

We switched our production system from a 64-bit server to a 32-bit server.

This solved our problem (and other issues as well) so this is now a dead issue.

thanx again!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...