×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Problem debugging the NXOpen code.

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 debuggingsad. 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.neutral 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).evil

Please help me out if anyone has faced same issues.smile

RE: Problem debugging the NXOpen code.

You need to attach ugraf.exe first and then launch NX from VS.

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.

(OP)
Thanks Paul for your feedback. But I am not able to attach ugraf.exe. Also in VS properties in Debugging I have set command to ugraf.exe(i.e. $(UGII_ROOT_DIR)/ugraf.exe), but NX doesn't launch through VS when I debug from VS it gives same error as while attach to the process. I have attached image of error in my previous post.


Thanks and Regards,
Yashodeep

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources