Skip to main content

Watchlist plugin for the debugger in the Spyder IDE

Project description

Spyder Watchlist plugin

Watchlist plugin for the debugger in the Spyder IDE

A watchlist is a functionality some IDEs offer while debugging code. It is related to the display of all variables accessible in the current scope (aka Variable Explorer in Spyder). But there is an important distinction: A Watchlist consists of a user-definable list of expressions. These expressions are evaluated after each debugger step and the result of the evaluation is displayed. See here for a screencast which demonstrates the plugin.

Installation

pip install spyder-watchlist

Features

  • Any Python expression can be entered. The Watchlist displays the stringified result of the evaluation. In terms of Python code value = str(eval(expression, globals, locals)).

    Warning This makes the Watchlist a very powerful tool, but this comes at a cost: Any side effects of an expression will affect your execution environment.

  • The values of expressions are refreshed whenever they might have changed (after executing commands in the IPython Console and after debugger commands).

  • The list of expressions can be modified at any time; see Usage for details.

  • The value of an expression is shown with bold font if it has changed

  • The value of an invalid expression is show as <exception name>. Hover the mouse over the value to show the full exception message in a tooltip.

Usage

  • Rearranging of expressions: Use Drag & Drop
  • Changing an existing expression: Double click on expression (first column)
  • Adding a new expression
    • Toolbar + button
    • Menu entry in right-click menu (anywhere in the table)
    • Double click at the end of the table (only possible if there is no scrollbar)
    • Drag & Drop text. If the text consists of multiple lines, each line is added as an expression.
  • Removing expressions. The following actions remove the currently selected expressions:
    • Toolbar - button
    • Menu entry in right-click menu
    • Del keyboard key
  • There is also a “Remove all expression” action in the toolbar and right-click menu

Known Issues

  • The value of variables in the current scope can be changed in Spyder’s Variable Explorer plugin. Expressions in the Watchlist depending on any variable changed in the Variable Explorer will display an outdated value. The new expression value is displayed after a refresh of the Watchlist. A refresh is trigged by:
    • Executing commands in the IPython Console. Pressing Enter with an empty input prompt is sufficient.
    • Modifying the list of expressions in some way (add, remove or edit an expression)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spyder_watchlist-2.0.0rc0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spyder_watchlist-2.0.0rc0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file spyder_watchlist-2.0.0rc0.tar.gz.

File metadata

  • Download URL: spyder_watchlist-2.0.0rc0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for spyder_watchlist-2.0.0rc0.tar.gz
Algorithm Hash digest
SHA256 dad3cda8dac85ede2f9e20bec6f951ace689e28998720a2a730a6bd1d218f93c
MD5 fb63722173ede2c944149e62f28a7576
BLAKE2b-256 58fc109f3ff5e3ea21de5fa358f8a1ea0c1db889f80b60520b83d7b757b29881

See more details on using hashes here.

File details

Details for the file spyder_watchlist-2.0.0rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for spyder_watchlist-2.0.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 e858359b21e6537996430085a36ece2ac08ca52b7f7f73d46044bd24bda4d2ff
MD5 27892071def85e065469a8edb27d7374
BLAKE2b-256 2ef612703e39175b41cede18321747651a7048ec5ed672998409394dc6541b2e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page