Quantcast
Viewing latest article 10
Browse Latest Browse All 33

Is it possible to automate the "Attach to Process" tool?

Hello,

I am using Intel Composer XE 2013 under MVS 2010. I have built a Solution with CMake in Debug mode. The solution is made up of several Fortran projects (say, app1.exe, app2.exe, ...). CMake also creates a VC++ project, RUN_TESTS, which mainly calls a .bat script (that I wrote by myself) where the applications are run in some predefined order (for instance, app1 is run, then app2, then app3, ...). When RUN_TESTS is launched, the calculations are correctly performed in each application and everything works fine. The problem comes when I want to attach the debugger to an application. For instance, let's consider that some breakpoints are added to the source code in app1. The procedure I am using is as follows: (1) Launch RUN_TESTS; (2) Go to  Debug > Attach to Process; (3) Select "app1.exe" from the list of the running processes and Attach. The symbols are loaded and the first breakpoint is correctly hit, thus allowing a debugging process. But what if app1 is running too fast? The debugger cannot be attached to it (app1 is no more displayed in the list of the running processes)... Is it possible to automate in some way the attachment process? I could consider the option of slowing down the application (by adding some loop at the beginning of the code), but this solution is not really satisfactory.

Thank you very much for your suggestions.

    Marc

 

 

 


Viewing latest article 10
Browse Latest Browse All 33

Trending Articles



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