Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D Documentation
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • anywave
  • Documentation
  • Wiki
  • Py_debug

Last edited by Bruno Colombet Jul 24, 2025
Page history

Py_debug

  • Introduction
  • Launch AnyWave in debug mode
  • Connect to AnyWave as a fake plugin
  • Test your code

Introduction

This function was designed for debugging purposes.
That means you will have to launch an instance of the AnyWave application in plugin debug mode specifying a TCP port to listen to.

Launch AnyWave in debug mode

Depending on your OS platform, open a Terminal window or a console application and launch AnyWave using the following command:

anywave --plugin_debug --server_port 59000

macOS: the anywave command should be available from the Terminal if you installed the application using the provided package.
Linux docker container: use the script provider to launch the application within the container, add command line arguments as mentioned above.
Windows: make sure your PATH contains the path the AnyWave application folder.

Connect to AnyWave as a fake plugin

# use the same port number you specified when launching AnyWave.
import anywave
anywave.debug_connect(59000)  # note that this code can be run from anywhere you want in your Python dev environment.

# get the settings defined by AnyWave
print(anywave.properties)

Test your code

While successfully connected to AnyWave, you can run any code using the anywave module.
You may have some issues as your code is not really running in the regular plugin context:

  • The properties dictionary set in anywave module will contain some empty paths, like the working directory path associated with the plugin or the plugin dir path.
    You may have to take that into account while debugging.
Clone repository
  • Build_AnyWave
  • CLI
  • CLI_List
  • Changes
  • ExportData
  • ICA
  • Imaginary Coherence
  • MATLAB anywave function
  • MATLAB_BIDS
  • MATLAB_change_sig_prop
  • MATLAB_debug
  • MATLAB_get_data
  • MATLAB_get_markers
  • MATLAB_get_props
  • MATLAB_init
View All Pages