How to debug an exe( application) which is launched from another exe(application) ?

1. Set the MessageBox in the another exe( source code)which you want to debug, at the location (function where you want to debug) or at initinstance if you want to debug from beginning.
Compile the code and build the exe.

2. Launce Maina Exe (first application).

3. Launch second exe from first exe.

4. Second exe will halt at the MessageBox location till user is not clicking ok button.

5. now open Visual Studio editor. select Debug->Processes, from process select your second exe name. and click attach process.

6. Now second application will be in debugging mode and hault at messageBox.

7. Now put the break point after the MessageBox code in second exe.

8. Click ok button on MessageBox.

9. Debugger will halt at the break point placed after the MessageBox code.

now you can debug your second exe(application) here onwards.

1 comment:

Prologic Corporation said...

This is a good article & good site.Thank you for sharing this article. It is help us following categorize:
healthcare, e commerce, programming, multi platform,inventory management, cloud-based solutions, it consulting, retail, manufacturing, CRM, technology means, digital supply chain management, Delivering high-quality service for your business applications,
Solutions for all Industries,
Getting your applications talking is the key to better business processes,
Rapid web services solutions for real business problems,
Web-based Corporate Document Management System,
Outsourcing Solution,
Financial and Operations Business Intelligence Solution,

Our address:
2002 Timberloch Place, Suite 200
The Woodlands, TX 77380