Problem debugging the NXOpen code.
Problem debugging the NXOpen code.
(OP)
Hello,
I am new to this NX Automation and I am stuck up with debugging
. I have created a NXOpen Project in "VS Express 2012 for Desktop" and written some code. I have build the code and the created dll works fine in NX when executed.
I want to debugg the code for that I try to attach to process "ugraf.exe", but it shows error "Unable to attach to the process. The address is not valid for this context" (see image for reference).
Please help me out if anyone has faced same issues.
I am new to this NX Automation and I am stuck up with debugging
. I have created a NXOpen Project in "VS Express 2012 for Desktop" and written some code. I have build the code and the created dll works fine in NX when executed.
I want to debugg the code for that I try to attach to process "ugraf.exe", but it shows error "Unable to attach to the process. The address is not valid for this context" (see image for reference).
Please help me out if anyone has faced same issues.





RE: Problem debugging the NXOpen code.
In VS open up Properties for your project. Go to the Debug tab and set Start External Program to your installed ugraf.exe.
Then when go Start from VS, it will launch (an attached) NX. If you put in a breakpoint it will then drop into VS.
Paul
Paul Turner
CAD & Process Engineer
Mastip Technology
RE: Problem debugging the NXOpen code.
Thanks and Regards,
Yashodeep