Remote Debbuging [NEW]
What is remote debbuging and why is it useful?
Step by step
Check if remote debbuging port is open
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=[PORT] -jar ~/[PROGRAM].jarjava -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:[PORT] -jar [PROGRAM].jar/home/frappe/frappe-bench/env/bin/pip install ptvsdnano /home/frappe/frappe-bench/Procfile#web: bench serve --port 8000nano /home/frappe/frappe-bench/apps/frappe/frappe/app.pyimport ptvsd
ptvsd.enable_attach(redirect_output=True)
print("Now you can connect IDE debugger.")
ptvsd.wait_for_attach()cd /home/frappe/frappe-bench/bench startDownload the code related to the program
Create launch.json


Select Attach to Remote Program option

Run the debugger
Last updated