how to debug and set schedule by sdk

I am a new user to build app by SDK,in my code,I register a callablefactory(myfactory) to scheduler, and then I can chose the callablefactory when the snap installed in my ctrlX CORE ,it work fine

but now I want konw whether I can debug the function of my callable,because,the cycle function writen by 

the function[common::scheduler::SchedEventResponse myCallable::execute()]
I set the breakpoint,and start debuging ,framework start,but I cannot hit the breakpoint which set in mycallable.cpp,if the breakpoint set in active.cpp,it can be hit

so,I need install app again everytime when I change the callable function now,how can I debug in my app build environments,not in device.it can help me to test function code and convenient to develop the app by SDK

Best reply by nickH

I think you are mixing to things here. There are two ways to test your bundle. 

  1. You can install the snap on a real or on a virtual ctrlX CORE. Here you would set the scheduler configuration manually in the webinterface and add your callable. Here you can take a look at the trace logs in the logbook and check if your callable works like you would expect. But you can't hit any breakpoints here.
  2. You can debug your bundle inside your build environment. For this type of debugging you don't need a ctrlX CORE or ctrlX CORE virtual! Here you don't have a webinterface for the scheduler. To add a configuration here you would need to insert a configuration for the scheduler like you will find in our samples (solutions/activeConfiguration/scheduler).
    Hint: This is the same kind of configuration you can also find in the app data of a ctrlX CORE. So you could also download the app data of a ctrlX CORE when you did the debugging type 1 and bring it to the build environment for the type 2. 
View original
5 replies