Debug 2007objectArx with Visual Studio 2005

Debug 2007objectArx with Visual Studio 2005

Anonymous
Not applicable
308 Views
2 Replies
Message 1 of 3

Debug 2007objectArx with Visual Studio 2005

Anonymous
Not applicable
Hi
I am trying to debug the "fact" sample that comes with objectarx 2007 samples.
I can't. This is what i did
1)I modify the Project->properties->Debugging->Attach with value "yes". Then Compile and link with the "Debug" configuration, creating fact.arx
2) Run Autocad 2007
3) Attach the solution to acad.exe
Put a breakpoint in some part of the code, and get a warning "The breakpoint will not currently be hit. No symbols has been load for this document", which gives me bad thinkings about the future (of my debugging, till now)
4) Then when I load fact.arx, obviously it does not stop on the break point, although i can use fact.arx functions successfully.

Then I'll try with the option of debugging with the "Start Debugging" and calling acad.exe from Visual Studio, and get a message:
"Unable to attached. 'C:\Programs... acad.ex' is not running on 'PC4' "
Being PC4 my machine name.
Then I try to attach again, using the browse button for getting the name of the machine, which is PC4. Anything else that I put there (localhost, or ip) instead of PC4, make disappear all the Available Process.
So it seems, that the debugger does not recognize the name of my machine.
I disconnect from internet, and put down the firewall, and it still does not recognize it.
Any idea? Other people managed to debug? Thanks in advance.
0 Likes
309 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
You need to make sure your solution's 'Debug' configuration is current,
select Rebuild All, then change your debugger settings as follows: set
'Command' to the path of acad.exe on your system, set 'Command Arguments' to
"/ld $(TargetPath)" (without the quotes), and set 'Attach' to No. Now set a
breakpoint, press F5 to start debugging, then load and run a fact.arx
command to trigger your breakpoint. 🙂
--
Owen Wengerd
President, ManuSoft ==> http://www.manusoft.com
VP Americas, CADLock, Inc. ==> http://www.cadlock.com
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks, I managed to debug the way you say, but, what i really want is to ATTACH to a running autocad programm, rather than Visual Studio calling autocad each time I make a change to the code (even with the Edit and conitnue option, which is very limitating)
Is the Attach Debug option, supported from Visual Studio 2005 for Autodesk 2007 ?
0 Likes