Select to view content in your preferred language

Can't break vb.NET operation in VS 2010 -- no source loaded

2989
3
Jump to solution
05-21-2013 06:46 AM
DerekRyter
Deactivated User
I am using VS2010 to write ArcMap add-ins in vb.NET. 2008 worked fine but I switched to 2010 when I installed Arc 10.1. 2010 is working well except for debugging.

I can't assign break points or pause the add-in while it's running. I get messages that the source or symbols are not loaded. I have read about these issues on the MicroSoft web pages and changed the paths to DLLs and such in the debug > options section of VS 2010, but nothing works.

Has anyone else run into this and know how to fix it?

Thanks,
Derek
0 Kudos
1 Solution

Accepted Solutions
deleted-user-ATjHIWsdQYmT
Deactivated User
I've also found you have to delete the .pdb files in the bin/debug and bin/release folders.  They will be regenerated on the next build.

View solution in original post

0 Kudos
3 Replies
RichardWatson
Deactivated User
My guess is that you are using the 4.0 or 4.5 framework?

If so, then you must edit ArcMap.exe.config and uncomment the 4.0 line near the top.

Here is an extract from my config file:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <startup>
    <supportedRuntime version="v4.0.30319"/>
    <supportedRuntime version="v2.0.50727"/>
  </startup>
0 Kudos
deleted-user-ATjHIWsdQYmT
Deactivated User
I've also found you have to delete the .pdb files in the bin/debug and bin/release folders.  They will be regenerated on the next build.
0 Kudos
DerekRyter
Deactivated User
I've also found you have to delete the .pdb files in the bin/debug and bin/release folders.  They will be regenerated on the next build.


I did both of these things and it worked! Thanks a bunch!

Derek
0 Kudos