简体   繁体   中英

Does the Visual Studio debugger for Python have equivalent to F9 key matlab

Is there an equivalent to the F9 key in Matlab for Visual Studio when debugging Python? It allows one to evaluate any expression one comes across, as long as the values have already been calculated with of course.

Ie if I'm debugging something in Matlab, and I come across the statement x = a+b+c , and I'm not sure what a+b is, I can highlight it, press F9 , and get the answer.

This is really nice for complicated formulas and checking piece by piece whether it all works out, instead of splitting everything up and creating unnecessary variables to assign the results too

As noted by Thomas and horchler you need an IDE that supports this feature. One such IDE is PyCharm which has a similar functionality using ctrl - U while debugging.

I really should have just spent 5 minutes looking on my own. In VS it's called quick-watch, can be accessed with shift f9.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM