Ask Your Question
-1

How to do code walk through for a particular command

asked 2015-08-19 01:47:54 -0500

Soumiyajit gravatar image

updated 2015-08-19 11:36:56 -0500

smaffulli gravatar image

Hi, Do we have a tool to get the flow of the code when we run a particular command in Openstack? I am trying pdb but its not working fine.

I have written a code to create a subprocess and execute a command on the bash, but its not working fine. Do we have a tool to trace the flow of code where we can track every method/api/module/component that we go through?

Thanks in Advance

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2015-08-19 02:52:29 -0500

updated 2015-08-20 05:56:35 -0500

Understand is a very good tool to know the functional calls and flow of the code. It also shows the flow in pictorial form and draws a flow chart type things to get the know how of the whole flow of the code. Other similar tools are Code Navigator and Source Navigator

EDITED


Ok, You should have mentioned that in question, You can see the API calls for by issuing any command from terminal by using the --debug flag, for example nova --debug image-list or nova --debug list

edit flag offensive delete link more
0

answered 2015-08-19 11:39:42 -0500

smaffulli gravatar image

You should edit your question and give more details of why pdb doesn't work. Also check the suggestions on https://ask.openstack.org/en/question...

edit flag offensive delete link more
-1

answered 2015-08-19 05:06:58 -0500

Soumiyajit gravatar image

Thanks Sayed for the quick response. I guess Understand is a static analysis tool and I did not see an option for Python in that tool.

I am preferring a run time analysis tool so that I can find out the exact flow of the code. For example I run a command "nova list", i want to know what are the exact api's I am using to retrieve the o/p and the flow in which the api is called..

Regards

edit flag offensive delete link more

Comments

this is not an answer. If you need to add clarity to a question, edit it instead. Learn how to use this site https://ask.openstack.org/faq

smaffulli gravatar imagesmaffulli ( 2015-08-19 11:34:53 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-08-19 01:47:54 -0500

Seen: 396 times

Last updated: Aug 20 '15