Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 从当前dll以调试模式执行进程_.net_Vb.net_Visual Studio 2010_Process - Fatal编程技术网

.net 从当前dll以调试模式执行进程

.net 从当前dll以调试模式执行进程,.net,vb.net,visual-studio-2010,process,.net,Vb.net,Visual Studio 2010,Process,我有一个Windows窗体应用程序,它在内部调用exe文件。现在我试图在调试模式下执行此exe文件,但无法执行。在当前应用程序运行时,是否有任何方法可以调试我的exe文件 Dim proc As Process = New Process() proc.StartInfo.FileName = "DllReader.exe" proc.StartInfo.Arguments = path & " " & dllFileName proc.StartInfo.Win

我有一个Windows窗体应用程序,它在内部调用exe文件。现在我试图在调试模式下执行此exe文件,但无法执行。在当前应用程序运行时,是否有任何方法可以调试我的exe文件

  Dim proc As Process = New Process()
  proc.StartInfo.FileName = "DllReader.exe"
  proc.StartInfo.Arguments = path & " " & dllFileName
  proc.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden
  proc.Start()
  proc.WaitForExit()
谢谢

是的

  • 在Visual Studio中打开Windows窗体应用程序
  • 导航到应用程序中启动第二个应用程序的点,然后启动它
  • 在另一个Visual Studio实例中打开第二个应用程序的解决方案
  • 点击CTRL-ALT-P(附加到进程)并选择运行第二个可执行文件的进程
    您现在可以单步执行代码。

    这就是我尝试的第一件事。但是我在调试菜单中没有看到附加到进程(CTRL-ALT-P也不起作用)…可能是因为应用程序在vb.net(Framework 3.5)中,而进程在c#.net(Framework 4.0)中?附加到进程在“工具”菜单中。