Questions tagged [remote-debugging]

Remote debugging is the process of running a debug session in a local development environment attached to a remotely deployed application.

While developing applications, developers often need to run the applications on other machines than their development machine. Reasons could be many: big environment setup to run the application (server grade), running on different OSes, preventing the development machine from any damage, actual run on production-like environment and so on,

A remote debugger is installed on remote machine, which is then connected to development machine. Remote debugger allows debugging in debugger just like local process debugging.

For debugging, the developer builds the executable (and dependent modules) locally, copies them (manually or with script) to remote machine, and then begins debugging.

2628 questions
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
32
votes
4 answers

Remote debug Jetty (no mvn, no plugins)

Past scenario - Work with Tomcat and start in debug mode and Remote Debug with Eclipse. - Define a port and connect with eclipse in this debug/remote port. - Use to debug servers in other hosts/servers Today scenario Now, I'm using Jetty and I've…
rafa.ferreira
  • 1,997
  • 7
  • 26
  • 41
31
votes
10 answers

Chrome remote debugging: empty inspect tab

I'm using Google Chrome v35.0.1916.114 and followed the steps to enable remote debugging on my Samsung Trend Plus GT-S7580 which runs Chrome v35.0.1916.122. I can effectively view the opened tabs, close them and all, but inspecting a tab gives me a…
jproton
  • 766
  • 1
  • 7
  • 15
31
votes
9 answers

Google Chrome for Android Remote Debugging - "localhost:9222" Not Available

I'm following the steps to enable remote debugging (https://developers.google.com/chrome/mobile/docs/debugging). When I reach step 4, Chrome for Desktop returns with "This webpage is not available". "Enable USB Web Debugging" is checked in Chrome…
user1341697
30
votes
2 answers

IntelliJ Debugger catching wrong file with same name

I have two files with same name in two separate packages package1 and package2 in same maven project. I added a debug point at line i in the file that is present in package1. But while debugging, the IntelliJ IDEA debugger stops at line i of the…
30
votes
8 answers

Cannot get Remote Debugging working with VS2010

I have a server and a workstation on the same corporate domain. My user is a local administrator on both machines. I have Installed the VS2010 version of MSVSMON and set it to run as a service on the server under my user DOMAIN\greg.b (I gave myself…
Greg B
  • 14,597
  • 18
  • 87
  • 141
29
votes
4 answers

Run Eclipse project on a remote machine

I have been working on a Java project from my local machine using Eclipse. I am trying to run this on a remote machine. The remote machine is a cluster running on Linux. Right now I have mounted the remote drive and edit the remote file copy through…
Naveen
  • 413
  • 1
  • 5
  • 9
29
votes
3 answers

Remote deploy/debug Visual Studio 2017 .NET Core

How can I set up remote deploy + debugging in VS2017 using a net core app which targets net framework? I have the remote tools installed and working on my target device. I can connect to it and debug remote applications. I have a build configuration…
Mardoxx
  • 4,372
  • 7
  • 41
  • 67
28
votes
5 answers

Visual Studio remote debugging on application startup

As I understand it now, the only way to use the remote debugger is to start the target application, and then attach to it through Visual Studio. Is there a way to capture all of the breakpoints from the very beginning of the program? There is code…
Tim
  • 1,334
  • 2
  • 15
  • 29
28
votes
2 answers

Is there a way to force Eclipse to automatically restart remote debugging (in listen mode)?

I'm using Eclipse to remote debug an application that's in debug client-mode (i.e -Xrunjdwp:transport=dt_socket,address=127.0.0.1:8000 jvm startup parameters, and Eclipse has "socket listen" mode selected in the debugger settings instead of the…
Manius
  • 3,594
  • 3
  • 34
  • 44
28
votes
1 answer

How do I show source code in windbg through ntsd -d?

I can't make source code show in windbg when I pipe ntsd -d on the target through windbg -k, but it works when I debug locally. I want to debug the very first code execution of Winlogon.exe and LSASS.exe. But to make it easy to reproduce the…
ixe013
  • 9,559
  • 3
  • 46
  • 77
28
votes
11 answers

Unable to open debugger port through IntelliJ

I've got a server running on DigitalOcean and a JAR file that I want to debug. I first start the JAR on the remote server using java -jar Server.jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 but on the console I see no…
Leonardo
  • 499
  • 1
  • 7
  • 18
28
votes
6 answers

How do I deal with a ClassNotLoadedException while debugging?

So I'm (remotely) debugging a java/jboss application in Eclipse, stepping through line by line. At one point, an array of GridSquare objects (GridSquare is a fairly simple, standalone class, contains a few properties and methods) is created by a…
DanM
  • 7,037
  • 11
  • 51
  • 86
27
votes
8 answers

Start mobile browsers with webkit remote debugging ON

At Google I/O 2011: Chrome Dev Tools Reloaded, Paul Irish and Pavel Feldman introduced new remote debugging feature — which was in passing included into webkit. -- This is great news, particularly for mobile web-developers. But how do we enable it,…
abernier
  • 27,030
  • 20
  • 83
  • 114
27
votes
5 answers

eclipse: remote debugging a tomcat server behind a firewall

After starting tomcat with jpda on, while at my company I can remote debug a bunch of web applications in eclipse. For a number of reasons I am now in need of developing and remote debugging those same webapps from outside the company firewall, and…
guido
  • 18,864
  • 6
  • 70
  • 95