Exception on starting cBot
Created at 17 Dec 2022, 12:34
EP
Exception on starting cBot
17 Dec 2022, 12:34
The new version of cTrader/Automate causes exception when cBot is starting having a code in OnStart method that launches and attaches a debugger to the process:
protected override void OnStart()
{
base.OnStart();
var debugger = System.Diagnostics.Debugger.Launch(); // <- causes an exception
if (debugger is false)
{
Print("ERROR in OnStart: debugger launch failed");
}
}
PanagiotisChar
18 Dec 2022, 22:05
Hi there,
It's not an exception, it's the debugger being launched and it breaks the execution.
Aieden Technologies
Need help? Join us on Telegram
Need premium support? Trade with us
@PanagiotisChar