cTrader 4.8 does not popup the debugger ( System.Diagnostics.Debugger.Launch() )

Created at 01 Nov 2023, 17:30
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
BO

boris_k

Joined 14.12.2021

cTrader 4.8 does not popup the debugger ( System.Diagnostics.Debugger.Launch() )
01 Nov 2023, 17:30


   Hi
the code bellow does not popup the debugger

this is the standard indicator with the minor update.

            bool v_bTmp = System.Diagnostics.Debugger.Launch();
           if (v_bTmp) {
               Print("the debugger works");
           } else {
               Print("Can not start the debugger");
           }

The variable v_bTmp is true but the debugger does not popup.
What is wrong?
Regards,
 

 

 


@boris_k
Replies

Shares4us
02 Nov 2023, 20:50

it's a bug somewhere in ctrader.automate 1.0.8
It does not write to the correct directory:

outputWindow:
1>BarneyStructureBreaks -> C:\Users\xx\Documents\cAlgo\Sources\Indicators\MyBot \MyBot \bin\Debug\net6.0\MyBot .dll
1>BarneyStructureBreaks -> C:\Users\xx\Documents\cAlgo\Sources\Indicators\MyBot \MyBot \bin\Debug\net6.0\MyBot .algo
1>MyBot -> \MyBot .algo

just  uninstall 1.0.8 (tools/nuget package manager …)
Then install 1.0.7
and your ouput wil look like:
1>BarneyStructureBreaks -> C:\Users\xx\Documents\cAlgo\Sources\Indicators\MyBot \MyBot \bin\Debug\net6.0\MyBot .dll
1>BarneyStructureBreaks -> C:\Users\xx\Documents\cAlgo\Sources\Indicators\MyBot \MyBot \bin\Debug\net6.0\MyBot .algo
1>MyBot ->  C:\Users\xx\Documents\cAlgo\Sources\Indicators\MyBot .algo

Works for me!


@Shares4us

boris_k
02 Nov 2023, 21:09 ( Updated at: 21 Dec 2023, 09:23 )

RE: cTrader 4.8 does not popup the debugger ( System.Diagnostics.Debugger.Launch() )

Shares4us said: 

it's a bug somewhere in ctrader.automate 1.0.8
It does not write to the correct directory:

outputWindow:
1>BarneyStructureBreaks -> C:\Users\xx\Documents\cAlgo\Sources\Indicators\MyBot \MyBot \bin\Debug\net6.0\MyBot .dll
1>BarneyStructureBreaks -> C:\Users\xx\Documents\cAlgo\Sources\Indicators\MyBot \MyBot \bin\Debug\net6.0\MyBot .algo
1>MyBot -> \MyBot .algo

just  uninstall 1.0.8 (tools/nuget package manager …)
Then install 1.0.7
and your ouput wil look like:
1>BarneyStructureBreaks -> C:\Users\xx\Documents\cAlgo\Sources\Indicators\MyBot \MyBot \bin\Debug\net6.0\MyBot .dll
1>BarneyStructureBreaks -> C:\Users\xx\Documents\cAlgo\Sources\Indicators\MyBot \MyBot \bin\Debug\net6.0\MyBot .algo
1>MyBot ->  C:\Users\xx\Documents\cAlgo\Sources\Indicators\MyBot .algo

Works for me!

The output on my site. I am using the default set up.



@boris_k