Creo TK/OTK - Debug dll
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
Solved! Go to Solution.
- Labels:
-
General
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
i guess, it's project property which is the main check point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I tried this option but still have "not symbol have been loaded for this document", and break point don't stop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
i send you a email, pls check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
i guess, it's project property which is the main check point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
yes, you are right, I'll try to modify my make file or, organize project properties according to your example project, thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
good luck!
