Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

As per ESRI's recommendation I begun the process of converting my existing VBA customization into VB .Net Express edition. I was surprised o realize that debuggin a DLL is not an option in the express edition.

"If you are using the Visual C# Express Edition or Visual Basic Express Edition, you cannot debug DLLs because these versions do not have the option to start an external application for debugging."

Source: http://help.arcgis.com/en/sdk/10.0/a...000001w2000000

Any workaround other than purchasing VS Pro?

share|improve this question
1  
This isn't a direct answer to the question, but depending on your situation, you might be able to use SysInternal's DebugView for Windows if you just need to monitor debug output. technet.microsoft.com/en-us/sysinternals/bb896647.aspx –  Jay Cummins Aug 23 '10 at 17:37

4 Answers 4

up vote 4 down vote accepted

You can use the start external program option by editing the VS project user file, which will be named {yourproject}.vbproj.user in the projects directory.

Open the file using your favourite xml editor and look for the following line:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "/>

replace it with something like this:

     <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
        <StartAction>Program</StartAction>
        <StartProgram>{programToAttach}</StartProgram>
     </PropertyGroup>

where {programToAttach} is the application the you want to debug with, in this case it would be ArcGIS or whatever you are using.

I used to use this when testing MapInfo plugins before I had the full version of Visual Studio.

share|improve this answer
    
Good stuff. Thanks –  Jakub Aug 24 '10 at 15:30

Never actually tested this solution, but some claim that it's possible by manually modifying the project file. See Debugging in VS Express.

share|improve this answer

Have you tested it yet? The reason I ask is that I'm using Vb express to convert my VBA tools to vb.net, and when I debug ArcMap opens with no problem.

share|improve this answer
    
Thanks for the replies. Have not tested it yet but will. I am currently in the process of updating my system (W7 64bit and ArcGis 10) and i will test the solution as soon as i am done. –  Jakub Aug 23 '10 at 21:05
    
Yes the solution works flawlessly –  Jakub Sep 11 '10 at 0:04
    
Good, glad that you found a solution to your issue. –  Zachary Sep 12 '10 at 23:47

Besides modifying the project file to starting an external program (Nathan W's answer), you can also use the standalone CLR debugger, which comes as part of the .NET SDK: http://support.microsoft.com/kb/893657

This will let you attach to an already-running process, which can be super helpful. I've used it for debugging ArcGIS Desktop extensions quite a bit.

It looks and feels like debugging from within Visual Studio, although it is somewhat more limited. (For example, you can't set breakpoints from within the visual studio editor since it is a standalone debugger.)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.