remote-debugging

Eclipse : Failed to connect to remote VM. Connection refused. [duplicate]

瘦欲@ 提交于 2019-11-27 11:21:42
This question already has an answer here: Eclipse Error: “Failed to connect to remote VM” 26 answers When ever i tried to launch my eclipse debug(for server side code) i'm getting the following error Failed to connect to remote VM. Connection refused. What's the problem may be? I already tried with most of the solutions out in the web but none of that solved my issue. Could any one can assist me to fix this? Advance thanks.. Which server are you using? Like already said: In your debug configuration you'll have to define the right port of your server (GF:9009 / Tomcat:8000) You'll have to set

Java remote debugging, how does it work technically?

一笑奈何 提交于 2019-11-27 10:26:01
I really like the remote debugging facilities of the JVM. But I wonder how it works internally. My assumption: It is done through a JVM feature where the running process is downloading/using the source-code from the attached remote-debugger (like IDE) It knows the line of the current stack-trace and then can jump to the respective IDE breakpoint. The communication of stack-trace and introspection of the application state is then done either through sockets or shared-memory (setting of remote debugger). Has anybody interesting links/resources on that? Vineet Reynolds The debugging features of

How do I attach a remote debugger to a Python process?

会有一股神秘感。 提交于 2019-11-27 10:16:20
I'm tired of inserting import pdb; pdb.set_trace() lines into my Python programs and debugging through the console. How do I connect a remote debugger and insert breakpoints from a civilized user interface? nosklo use Winpdb . It is a platform independent graphical GPL Python debugger with support for remote debugging over a network, multiple threads, namespace modification, embedded debugging, encrypted communication and is up to 20 times faster than pdb. Features: GPL license. Winpdb is Free Software. Compatible with CPython 2.3 through 2.6 and Python 3000 Compatible with wxPython 2.6

How to set up ADB for remote machine development and local device deployment

半腔热情 提交于 2019-11-27 09:28:50
问题 My scenario is this: I telework from home and log into my work machine via Windows Remote Desktop. I use Eclipse as my development environment for Android apps on my work computer. Using ADB, I would like to be able to deploy apps from my work computer to a device on my home network, for scenarios where the emulator doesn't do the app justice. I found this post, which discuss a very similar scenario, with the exception of deploying to an emulator running on a local PC, instead of deploying to

Remote debugging C++ applications with Eclipse CDT/RSE/RDT

元气小坏坏 提交于 2019-11-27 09:04:21
I am fighting with Eclipse (in Windows) to make it connect to my Linux box and compile and debug C++ code there remotely. What I have working: CDT/RSE/RDT installed (Eclipse Juno, CDT 8.1.2, PTP(RDT) 6.0.4, RSE 3.4) rdt-server runs on Linux box ( perl ./daemon.pl 4075 ) create local C++ projects (Makefile based) compile and debug local C++ projects create remote projects (using the "Linux" connection to the rdt-server) compile remote projects (Makefile based) Some manual things I can do (without Eclipse): "remote" debug my compiled projects: ssh mybox 'cd /path/to/project; gdb main' start a

Run local python script on remote server

青春壹個敷衍的年華 提交于 2019-11-27 06:25:27
I'm debugging some python script that must run on my virtual machine. And, I prefer to edit the scripts locally(outside of virtual machines). So I find it's tedious to scp modified scripts to virtual machines every time. Can anyone suggests some effective way? Particularly, I'm wondering if it's possible to execute python scripts on remote PVM. Something like that: python --remote user@192.168.1.101 hello.py //**FAKED**, served to explain ONLY It is possible using ssh. Python accepts hyphen(-) as argument to execute the standard input, cat hello.py | ssh user@192.168.1.101 python - Run python

How do I start up remote debugging with PyCharm?

隐身守侯 提交于 2019-11-27 05:53:21
I'm trying to get debugging up between PyCharm (on windows host) and a debian virtual host running my django application. The instructions say to install the egg, add the import, and then invoke a command. I assume these things need to be done on the debian host? Ok, then, in what file should I put these two lines? from pydev import pydevd pydevd.settrace('not.local', port=21000, stdoutToServer=True, stderrToServer=True) I tried putting it into the settings.py but got this kind of thing... File "/django/conf/__init__.py", line 87, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE)

Running ndk-gdb with package not found error on motorola phone

允我心安 提交于 2019-11-27 05:43:16
问题 I have a C++ Android application that I'm trying to debug with ndk-gdb. The application does use multiple threads, but supposedly r5 of the ndk supports multiple threads. Also, I'm not even getting to the point where gdb starts up. I run the command: ndk-gdb --start --force --verbose It then finds the proper path for the ndk and sdk (or at least adb), and the needed ABIs and whatnot. $ ndk-gdb --start --force --verbose Android NDK installation path: /home/leif/eclipse/android-ndk-r5b Using

How do I attach a remote debugger to a Python process?

送分小仙女□ 提交于 2019-11-27 04:02:06
问题 I'm tired of inserting import pdb; pdb.set_trace() lines into my Python programs and debugging through the console. How do I connect a remote debugger and insert breakpoints from a civilized user interface? 回答1: use Winpdb. It is a platform independent graphical GPL Python debugger with support for remote debugging over a network, multiple threads, namespace modification, embedded debugging, encrypted communication and is up to 20 times faster than pdb. Features: GPL license. Winpdb is Free

Running java with JAVA_OPTS env variable has no effect

陌路散爱 提交于 2019-11-27 03:33:18
In a shell script, I have set the JAVA_OPTS environment variable (to enable remote debugging and increase memory), and then I execute the jar file as follows: export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=n -Xms512m -Xmx512m" java -jar analyse.jar $* But it seems there is no effect of the JAVA_OPTS env variable as I cannot connect to remote-debugging and I see no change in memory for the JVM. What could be the problem? PS: I cannot use those settings in the java -jar analyse.jar $* command because I process command line arguments in the application. I