Emphasize development and debug utility of ipy command
See original GitHub issueThe utility of the optional ipy command combined with self.self_in_py = True for developers is truly phenomenal. We don’t do these amazing features justice in our documentation and I’m not sure how discoverable they are for new cmd2 developers. These features open the door to an enhanced development experience that allows easy experimenting as well as the ability to do some after-the-fact debugging when things don’t behave like you think they should.
We should add a section on “Developer Tips” or something like that to our documentation.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:16 (16 by maintainers)
Top Results From Across the Web
Introducing IPython — IPython 3.2.1 documentation
This can be an efficient way to develop and debug code, in many cases eliminating the need for print statements or external debugging...
Read more >Step-by-step debugging with IPython
Using IPython by embedding an IPython shell in your code. You can do from IPython import embed , and then use embed() in...
Read more >How to Develop and Debug using XSCT - Xilinx
Learn how to develop and debug using XSCT, Xilinx Software Command -Line Tool. The video demonstrates how the XSCT acts as a Command...
Read more >Debug Intel® FPGA Hardware with System Console
You can use tab completion to finish commands as you type them, and even show you what possible commands can complete from the...
Read more >Debugger — Spyder 5 documentation
Spyder's debugger offers syntax highlighting, code completion and command history, which work exactly like they do in the normal interactive interpreter. Use ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I like the concept of putting this in the basic oookiecutter template: https://github.com/jayrod/cookiecutter-python-cmd2/issues/10
We can probably also update our documentation a little to emphasize just how darn useful
ipyis for debugging.In both
pyandipyshells, you can do everything that’s possible in a pyscript. Therefore, you don’t need to callself.do_foo(). Just useapp('foo arg1 arg2').These shells offer a lot for debugging. I commonly do the following operations:
selfobject.selfobject to simulate various conditions.appcommand to see what’s returned in theCommandResultobject.I also use
run_pyscriptfor debugging. Recently I wrote a pyscript which rewrites ado_*command function while the application is running. That way I don’t have to keep closing and reopening the application to test my code changes.