cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug

Experimenter
Experimenter

Hello
my English is a little bad, I think the question means.

a way to debug the programs directly from visul studio is there.
They can be run directly, to check variables etc.

Thank you very much.

2 REPLIES

Re: How to debug

Siemens Phenom Siemens Phenom
Siemens Phenom
  1. Set breakpoint(s) in in your NX Open code in the Visual Studio editor
  2. Compile your NX Open code into a .dll
  3. Start NX
  4. In Visual Studio, pick Tools, Attach to Process
  5. Find the NX process (ugraf.exe) and select it as the process to attach to
  6. Run the NX Open dll in NX (File, Execute NXOpen)

 

The code will run until hitting the first break point, then it will pause and you can interrogate variables, etc. in Visual Studio.

Re: How to debug

Siemens Phenom Siemens Phenom
Siemens Phenom

There are two ways. Take a look at the "Getting Started with SNAP" guide. There's a section on debugging at the end of chapter 3. debug.PNG

山田
yamada