Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

How to debug code called by another program?

$
0
0

I have written code that interacts with an optical analysis program via DDE. I got this working fine when I was running on a 32-bit platform.

I now have to cope with the optical analysis program now running on a 64-bit platform.

The back and forth DDE communication part works OK - when I start the optical analysis program, it talks to my code OK (diagnostic message boxes put up by my code confirms this), but the process now falls over when my code tries to open a modal Windows dialog, so I want to debug my code.

However, in my VS2012, I cannot see/find how to specify that debugging has to start by executing the optical

analysis program rather than my own. Any suggestions how to do this?

Also, I have to copy my debug code to a specific folder, for the optical analysis program to access it, so the code that has to be debugged will not be in the /debug/ folder created and populated by the compiler.

So how do I get the VS debugger to 'latch onto' the code that needs debugging?

 Do I also have to accompany my code with the PDB file that is created along with it?

 


Viewing all articles
Browse latest Browse all 3270

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>