remote debugging e.g. for demo_browser #580
WolfgangFahl
started this conversation in
Show and tell
Replies: 1 comment
-
The demo browser has a -h option to show the possible arguments: usage: demo_browser.py [-h] [-d] [--heroku] [-p PATH]
[--debugServer DEBUGSERVER] [--debugPort DEBUGPORT]
[--debugPathMapping DEBUGPATHMAPPING [DEBUGPATHMAPPING ...]]
[--host HOST] [--port PORT]
Justpy Examples browser
optional arguments:
-h, --help show this help message and exit
-d, --debug show debug info
--heroku in heroku environment pick up port from env variable
and set host to 0.0.0.0
-p PATH, --path PATH path to the examples (default:
/home/wf/source/python/justpy)
--debugServer DEBUGSERVER
remote debug Server
--debugPort DEBUGPORT
remote debug Port
--debugPathMapping DEBUGPATHMAPPING [DEBUGPATHMAPPING ...]
remote debug Server path mapping - needs two arguments
1st: remotePath 2nd: local Path
--host HOST
--port PORT |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The justpy demo browser now supports remote debugging with pydevd.
start your pydevd locally in your IDE e.g. in liclipse as outlined in https://www.pydev.org/manual_adv_remote_debugger.html
You can e.g. create an SSH tunnel to your remote server
and then run the demo browser with debugging switched on. See example call below:
export PYTHONPATH=. python examples/demo_browser.py --debugServer localhost --debugPort 5678 --debugPathMapping /Users/john_doe/Documents/pyworkspace /home/john_doe/source/python --port 12001
Use the app vi e.g.
http://remote_server:12001/
and happyily debug from your your local server
Beta Was this translation helpful? Give feedback.
All reactions