cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Creo TK/OTK - Debug dll

amedina-2
1-Newbie

Creo TK/OTK - Debug dll

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.
1 ACCEPTED SOLUTION

Accepted Solutions
xd
1-Newbie
1-Newbie
(To:amedina-2)

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

View solution in original post

10 REPLIES 10

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?

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 ?

xd
1-Newbie
1-Newbie
(To:amedina-2)

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-2
1-Newbie
(To:xd)

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

xd
1-Newbie
1-Newbie
(To:amedina-2)

would you share your project codes?

xd200800@163.com

amedina-2
1-Newbie
(To:xd)

yes, i can share some code, with base callback functions, but without code they actually do, when i prepare solution, I'll send you on e-mail, thanks. P.S. I can't share whole code because of company secure politics.

xd
1-Newbie
1-Newbie
(To:amedina-2)

i send you a email, pls check

xd
1-Newbie
1-Newbie
(To:amedina-2)

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

amedina-2
1-Newbie
(To:xd)

yes, you are right, I'll try to modify my make file or, organize project properties according to your example project, thanks

xd
1-Newbie
1-Newbie
(To:amedina-2)

good luck!

Top Tags