Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Show return values #420

Closed
karthiknadig opened this issue May 11, 2018 · 3 comments
Closed

Show return values #420

karthiknadig opened this issue May 11, 2018 · 3 comments

Comments

@karthiknadig
Copy link
Member

Pydevd allows us to show the return values of functions. It can be useful to see the return value without adding a explicit print.

image

Stepping over a function will display its return value in the locals window.

@DonJayamanne
Copy link
Contributor

it should not be MyClass.do_something, the name in locals read c.do_something?

@karthiknadig
Copy link
Member Author

The name comes from pydevd, it looks like they use qualified function names in this case.

@MikhailArkhipov MikhailArkhipov added this to the Future milestone May 17, 2018
@karthiknadig
Copy link
Member Author

This is a fairly straight forward change. Calling the following pydevd command from debug options handler should be enough. We may want to add option to show/hide return values in settings.

self.pydevd_request(pydevd_comm.CMD_SHOW_RETURN_VALUES, '')

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants