Debugging with VS2010 Express

Debugging with VS2010 Express

Anonymous
Not applicable
602 Views
3 Replies
Message 1 of 4

Debugging with VS2010 Express

Anonymous
Not applicable

Hi all,

 

I feel like this question has probably been asked many times before, but I can't find a  solution.

 

I'm trying to debug an add-in with VS2010 Express. Now I understand that Express doesn't have built in capabilities to debug .dll add-ins, but I keep finding sites discussing (though not explaining) debugging with Express.

 

I've got the .dll registered (using INV2011) and I've modified the .vbproj.user file to make Inventor the startup project, and that works... Now all I need to figure out is how to get VS2010 to stop on break points, and display errors when they're hit.

 

Can anyone help out with this one?

 

Regards

0 Likes
603 Views
3 Replies
Replies (3)
Message 2 of 4

philippe.leefsma
Alumni
Alumni

Hi Gerrard,

 

Sorry I don't have the Express version of VS2010 installed so I cannot test, but in the past all you needed to do was editing the .vbproj.user file as follow (of course with the appropriate path of Inventor.exe on your machine):

 

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

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

            <StartAction>Program</StartAction>

            <StartProgram>C:\Program Files\Autodesk\Inventor 2012\Bin\Inventor.exe</StartProgram>

      </PropertyGroup>

      <PropertyGroup>

            <ProjectView>ShowAllFiles</ProjectView>

      </PropertyGroup>

</Project>

 

 

It was then possible to run Inventor from the debugger and use breakpoints. If the above suggestion doesn't help, then I'm affraid I don't have further advice, Microsoft may have added some extra limitation to VB.Express.

 

Regards,

Philippe.

 

Philippe Leefsma
Developer Consultant
Developer Technical Services
Global Subscription & Support 

Autodesk EMEA

 

www.autodesk.com/joinadn




Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 4

Anonymous
Not applicable

Phillippe,

 

I've made those changes to the .vbproj.user file already, and it enables Inventor to open when I'm debugging, but it doesn't hit any break points or give me errors when things go wrong.

 

Thanks and Regards

0 Likes
Message 4 of 4

Anonymous
Not applicable

Hello my friend,

 

 

My VS2010 Express is not building .user  file.....

 

 

Please help me...

0 Likes