Skip to main content
1-Visitor
May 25, 2015
Solved

Creo TK/OTK - Debug dll

  • May 25, 2015
  • 2 replies
  • 4120 views

How to set up Visual Studio 2012 for debug dll/exe ?. There are always "not loaded symbols" on breakpoints, but in Modules list everything okay.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
Best answer by xd_01

i guess, it's project property which is the main check point.

2 replies

1-Visitor
June 3, 2015

If you jump into Toolkit functions, you are inside Creo and the debug symbol tables for Creo are not provided by PTC (probably to avoid possibility of reverse engineering).

Maybe this is what you observe?

amedina-21-VisitorAuthor
1-Visitor
June 4, 2015

I'am trying to debug interactive dll.
From documentation:

Debugging an interactive DLL

1) Start PTC Creo Parametric with the DLL registered and loaded

2) Use the debugger to attach to the process xtop.exe.

3) Set break points in the callback functions that you wish to debug.

may be something wrong with my make file ?

1-Visitor
June 5, 2015

in the User Guide of API, there is instruction for the debug.

1, compile change in VS /Od /Z7

right click the project and in the settings

2, link change in VS /debug (regardless of /debug:full, i did not find it now)

as #1

3, enable VS debug in environment variable ALLOW_MS_DEBUG  set true

my computer right click, property, and advanced settings , advanced tab, environment

after the settings

run creo

start the dll

open taskmanager, ctrl+alt+del

in the processes, right click and choose    debug

make a right choice in the dialog following, and it opens VS

set the break point in VS

do some operations with the dll,

and debugging

amedina-21-VisitorAuthor
1-Visitor
June 8, 2015

I tried this option but still have "not symbol have been loaded for this document", and break point don't stop

1-Visitor
June 8, 2015

would you share your project codes?

xd200800@163.com