Doubleclick mxd startup and debugging

1958
2
06-15-2010 06:43 AM
artifact
New Contributor III
Does the double clicking of an mxd to startup arcmap run a different startup sequence than other starting methods? It seems that the extension we have created is not being properly checked when the mxd is doubleclicked. It works fine in all other startup methods. How exactly can I go about debugging this as starting Arcmap in debug mode is not possible form a mxd double click as far as i know?
0 Kudos
2 Replies
NeilClemmons
Regular Contributor III
Actually you can.  Double-clicking the mxd in Windows Explorer is pretty much the same thing as starting ArcMap from the command line and passing in the path to the mxd as an argument.  You can do this in Visual Studio by opening the Project Properties and selecting the Debug tab.  Set the Start Action to Start External Program (browse to ArcMap.exe).  Under Start Options add the full path to the mxd in the Command Line Arguments box.  Enclose the path to the mxd in double quotes.  These instructions are for VS2008; other versions may be different.
0 Kudos
artifact
New Contributor III
Neil,

Thanks exactly what I was looking for 🙂
0 Kudos