Questions tagged [attach-to-process]
61 questions
53
votes
3 answers
Visual Studio remote debugger "invalid access to memory location" feature
This is another attempt to resolve the problem stated here. Unfortunately the topic was closed without adequate resolution found, as apparently the original poster had issues with symbols, not with visual studio problem itself.
Problem Statement:…

galets
- 17,802
- 19
- 72
- 101
32
votes
4 answers
Visual Studio 2012 Remote Debugging: Invalid access to memory location
I followed the instructions in this link: http://msdn.microsoft.com/en-us/library/bt727f1t.aspx to install the remote debugger (2012) on my server where the application is running in hope to debug it remotely from my dev machine running visual…

Shumii
- 4,529
- 5
- 32
- 41
24
votes
3 answers
How to debug code running from terminal in pycharm
I am running my code in Pycharm from Terminal. Is it possible to debug the code and put breakpoints inside the code during a run from terminal?

MSepehr
- 890
- 2
- 13
- 36
20
votes
2 answers
VSCode debugger attach to local process
One of the great features of PyCharm is that it allows its debugger to attach to python processes running locally (and outside of the IDE).
As I am trying to move to VSCode to work in Python, I am struggling to configure launch.json to simulate…

Jun Park
- 508
- 1
- 6
- 20
17
votes
4 answers
VS attaching to process disabled
A few days ago, the attach button in "Attach to process" dialogue became disabled in VS 2010 and VS 2008 likewise. At first I thought that it is just an extension I've installed in VS 2010 but then I noticed it is the same in VS 2008. The both VS's…

Drakche
- 395
- 1
- 4
- 11
16
votes
3 answers
Attach visual studio debugger to electron app
I'm attempting to debug electron app from visual studio 2017 (and not vscode) from scratch.
I created a console nodejs project, install and save electron. Project structure:
Content of app.js (taken from website of electron):
'use strict';
const…

TuanDT
- 1,627
- 12
- 26
11
votes
3 answers
How can I tell which process I am debugging (attached to multiple processes) in Visual Studio?
I'm debugging a Windows service which has two running instances, by attaching to both instances. I am doing this because I know only one instance will hit my breakpoint, but I'd like to know which instance that is, so that I don't have to attach to…

Alec
- 946
- 1
- 11
- 22
5
votes
1 answer
visual studio: attach debugger without starting web debugging
I have a visual studio solution with a half dozen web application projects. I often want to attach the debugger to a process. When I do this, visual studio always wants to start up cassini or IIS express or do something to run the web applications…

Frank Schwieterman
- 24,142
- 15
- 92
- 130
5
votes
2 answers
Mac OS X Mavericks - gdb - Cannot set breakpoints when attaching to process
I recently upgraded from Mac OS X 10.7 to 10.9. As gdb is no longer supported in OS X, I installed GNU gdb via macports. Before being able to use it, I had to codesign it as described here.
Now I can use gdb as debugger but I have problems in…

Michele Segata
- 116
- 4
5
votes
0 answers
Attach to Process Extremely Slow To Open
When I click on Attach to Process in either VS2010 or VS2012 it takes about 10 minutes for the "Attach to Process" window to open. While waiting for it to open VS is unresponsive, I have to End Process from task manager to do anything else. Can…

GradDeveloper
- 51
- 2
5
votes
1 answer
Attach visual studio to a short lived process
I have a console application that dies very quickly, and upon inspecting the code, I can't tell exactly where it'll die (I've basically narrowed it down to a 10 line radius) so that I further debug it.
For reasons I won't go into, I can't execute…

Steven Evers
- 16,649
- 19
- 79
- 126
4
votes
2 answers
Debugging Classic ASP causes Visual Studio 2008 to crash - how can I fix this?
I'm debugging classic asp code using VS 2008 sp1 on windows 7. Everything works great, I attach to the process and can debug. However, If I stop debugging visual studio will crash.
I read the recycling the app pool would help, but it has not…

Adam Gordon Bell
- 3,083
- 2
- 26
- 53
4
votes
0 answers
Attach to process: the breakpoint will not be hit. no symbols have been loaded for this document
Possible Duplicate:
Fixing “The breakpoint will not currently be hit. No symbols have been loaded for this document.”
I'm trying to debug a running app on an installation, that I have previously debugged, but now I'm getting:
The breakpoint will…

nk2003dec
- 534
- 1
- 4
- 10
3
votes
3 answers
Debugging asmx web services
How can I debug asmx webservices running on IIS? I read that I must Attach to process called aspnet_wp or w3wp. But I can not find these processes... I selected checkbox show processes from all users but still nothing. What can be wrong?
regards

rysiard
- 77
- 1
- 1
- 7
2
votes
0 answers
Attach to Process Id Error - Timed out waiting for debug server to connect
I m currently doing the remote development from Linux machine. I have mounted the remote code to Visual studio code with remote-ssh extension successfully.
When I try to debug with Attach using Process Id. I'm seeing "Timed out waiting for debug…

kiran
- 21
- 2