Skip to content

debug_connect

debug_connect connects a Python script that does not run as a plugin of AnyWave to an AnyWave started in plugin debug mode. It is meant for debugging, see Debug a Python plugin in your IDE for the whole procedure.

import anywave as aw

props = aw.debug_connect(59000)       # the port given to: anywave --plugin_debug --server_port 59000
  • The argument is the port that AnyWave listens to.
  • The function returns the dict of the settings of the plugin, the same as get_props, and also stores it in anywave.properties.
  • AnyWave gives a new identity to the script each time you call debug_connect.

Use it instead of init: a script that runs as a plugin does not need it.