Jump to content

Programming Howto:Attach the Debugger to a BCI2000 Module

From BCI2000 Wiki
Revision as of 13:44, 16 August 2018 by Mellinger (talk | contribs) (Next step)

Duplicate a SignalGenerator batch file from the BCI2000 batch directory that is similar to your needs

Rename it to contain "VeryNiceSignalProcessing" in its name

Edit the batch file by adding --EvaluateTiming=0 to the SignalGenerator line, and by replacing the signal processing module's name with "VeryNiceSignalProcessing"

Double-click the batch file to start up BCI2000

In the VisualStudio IDE, set a breakpoint in VeryNiceFilter::StartRun(), and choose "Attach to Process..." from the "Debug" menu

From the process list, choose "Very Nice Signal Processing", and click "Attach"

In the Operator window, click "Set Config" ...

... and "Run", which will execute VeryNiceFilter::StartRun() ...

and cause the debugger to stop execution at the breakpoint you set earlier

Next step

As a next step, learn how to programmatically wait for the debugger in a BCI2000 module.

See also

Programming Howto:Building and Customizing BCI2000