Questions tagged [attach-to-process]

61 questions
2
votes
1 answer

IIS Worker Processes list is empty

I try to attach to process in Visual Studio for debugging. The process is WCF-service on IIS. I've read articles about how to get process ID from IIS. They advice to check IIS->Root->Worker Processes and select needed processID, but my list of…
Vitaliy
  • 645
  • 1
  • 10
  • 21
2
votes
2 answers

How exactly a debugged process can compromise the debugging process (machine)?

Whenever one wants to attach to a process from Visual Studio, one receives this nasty message: This question and its answers show the struggle to get rid of it. This Microsoft article tells us about the potential dangers of attaching for the…
2
votes
1 answer

Debugging Apple Watch and iOS app simultaneously

Up until today, I've been able to build, run, and debug my watch app and iOS app at the same time. When I build and run, the debugger attaches to the watch automatically. Then I have to manually attach the iOS debugger. I have been following these…
Tessa
  • 176
  • 13
2
votes
1 answer

how to debug javascript in nodejs on Windows when I'm not the caller of node.exe

I'm trying to debug nodejs script (on Windows). I found that I can stop execution / set a breakpoint withing the script by using the 'debugger;' statement. However this seems to work only if node.exe called as: node debug myscript.js Problem is I'm…
2
votes
1 answer

Debugging .NET crash that does not happen within Visual Studio IDE

When I ran my C# WinForms executable outside of the Visual Studio IDE for the very first time, I received the following dialog: " has stopped working, Windows can check online..." So I attached to the process using Visual Studio's…
Sabuncu
  • 5,095
  • 5
  • 55
  • 89
2
votes
3 answers

How to attach to a process and debug the code that doesn't build?

I'm working on a project and trying to fix a bug found in the system. The code that I have access to doesn't build (it's a huge project with a lot of dll files, some of which are missing on my workspace). I have access to the part of the code I'm…
Arian Motamedi
  • 7,123
  • 10
  • 42
  • 82
1
vote
1 answer

Clear visual studio debugger's saved connections in attach to process dialog

I need to clear some old entries saved for Connection target dropdown list in Attach to Process dialog. Some remote servers have been decommissioned. But their names are still listed on the top of Connection target list. When I start the Debug menu…
1
vote
0 answers

Getting Error "Timed out waiting for debug server to connect" when trying to attach VSCode debugger to a process ID

I am trying to debug a Python code with an attach to process id in VSCode but I'm having an error stating "Timed out waiting for debug server to attach". I usually perform this in Visual Studio Community by the following mean (Headsup, I'm not…
1
vote
2 answers

Debugging with 'Attach to Process' magic with Visual Studio 2010/Xcode/gdb

I see that with the 'Attach to Process', one can debug the process by setting up break point in Visual Studio IDE. I think it's pretty cool, and I'm curious what's the mechanism that enables it. I also found that gdb and Mac's Xcode supports the…
prosseek
  • 182,215
  • 215
  • 566
  • 871
1
vote
1 answer

Attach to linux process with microsoft visual studio?

I'm developing python in Microsoft visual studio, The python code is also executed in linux OS machine, which I have a connection to. Is it possible for the visual studio to attach to the linux process, for debugging purposes?
Y.S
  • 1,860
  • 3
  • 17
  • 30
1
vote
1 answer

Visual Studio 2015 / MVC 5: Attach to Process: Cannot obtain value of the local variable

I can connect to the w3p process on my IIS box just fine. I can step through, although it seems to skip some areas. Also, when I try to view a variable value, I get: Cannot obtain value of the local variable or argument because it is not available…
Beau D'Amore
  • 3,174
  • 5
  • 24
  • 56
1
vote
1 answer

How to automatically attach process to a specific instance of VS?

I am trying to attach a process to VS by using this code: DTE dte = (DTE)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.11.0"); EnvDTE.Processes pro = dte.Debugger.LocalProcesses; foreach (EnvDTE.Process p in pro) { if…
Guid2015
  • 57
  • 11
1
vote
1 answer

How to attach web project to process "MicrosoftEdgeCP.exe" (Microsoft Edge) automatically on start debugging in Visual Studio 2015

as I just updated to Windows 10 and Visual Studio 2015, I am facing the problem described in this Question and correctly answered by Shaun Luttin. In addition to that question I want to ask how this procedure can be automatically executed. To be…
1
vote
2 answers

When i press F5, an "Attach to Process" window opens

I have so many different C# source projects that run OK on other computers. But on one computer, using Visual Studio 2013, when i press F5 to run the project, the "Attach to Process" window opens. I searched a lot but no one have had my problem. Why…
Matin Lotfaliee
  • 1,745
  • 2
  • 21
  • 43
1
vote
2 answers

WPF Pass the debugger on to a newly spawned process

I have an application that spawns a new process. During development of the application, I would like to attach a debugger to the new process. Currently I can do that through Visual Studios Attach to Process functionality, but it's a pain to go…
Robert Petz
  • 2,718
  • 4
  • 23
  • 52