1 / 6

Python remote debugging with your ADDM development VM

Python remote debugging with your ADDM development VM. PRE-REQUISITS. You need to have working ADDM dev environment . You must have setup Eclipse IDE with proper project which should point to your ADDM dev VA code . You need Python’s PYDEV module. SETUP STEPS.

minnie
Download Presentation

Python remote debugging with your ADDM development VM

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Python remote debugging with your ADDM development VM

  2. PRE-REQUISITS • You need to have working ADDM dev environment . • You must have setup Eclipse IDE with proper project which should point to your ADDM dev VA code . • You need Python’s PYDEV module.

  3. SETUP STEPS • Copy from your eclipse directory the following directory onto your dev appliance .(<path to eclipse>/plugins/org.python.pydev.debug_x.x.x.x/pysrc) .E.g : /usr/tideway/dev/pydevd/ • Include the directory into your PYTHONPATH on your appliance . For this we need to edit tw_setup . Please note you need to edit $TIDEWAY/tw_setup on your DEV VA. • In the pydevd edit the file pydevd_file_utils.py file so that “PATHS_FROM_ECLIPSE_TO_PYTHON” list have value : PATHS_FROM_ECLIPSE_TO_PYTHON = [(r'Z:\dev\code\trunk\python', r'/usr/tideway/dev/code/trunk/python'),(r'C:\Python27\lib',r'/usr/tideway/lib/python2.7')]

  4. SETUP STEPS CONTD.1 • Now modify your python code with following statements . • You can add the below code snippet at $TIDEWAY/python/common/daemonise.py (after log message : logger.debug( "Daemon setup complete" ))OR$TIDEWAY/python/ui/web insert the following code in Launch.py after config.setupDaemon() • import pydevd;pydevd.settrace(host='<IP address of your workstation running eclipse>', stdoutToServer=False, stderrToServer=False, suspend=False, trace_only_current_thread=False)

  5. ECLIPSE SETTINGS • In Eclipse go to Windows->Customize Perspective -> Commands Tab • In the commands section select “Pydev Debug” check box. • After that click on Debug perspective . Press on start debug server option on tool bar . • Once we start debug server it starts listening on respective IP.

  6. REFERENCE • If you need any more help please visit confluence page : • http://confluence.bmc.com:8080/display/Discovery/How+to+do+remote+debugging+with+your+development+VM

More Related