Can not debug a Project started using Process.Start()

前端 未结 5 1302
青春惊慌失措
青春惊慌失措 2021-01-02 02:49

I have two C# WinForm projects in the same solution lets call them A and B. Project A starts Process B via a call like below

ProcessStartInfo psi = new Proce         


        
5条回答
  •  無奈伤痛
    2021-01-02 03:20

    You can also try not launching process B directly. Right-click on the solution, select Properties | Common Properties | Startup. Set both Process A and Process B to Start. This simulates Process B being launched by process A (comment out the launching of process B by process A in the source code of A). You can now test your interprocess communications between A and B as if B had been launched by A.

提交回复
热议问题